mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Playlists support
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import AVFoundation
|
||||
import Foundation
|
||||
|
||||
extension AVKeyValueStatus {
|
||||
var string: String {
|
||||
|
@@ -1,8 +1,8 @@
|
||||
extension CaseIterable where Self: Equatable {
|
||||
func next() -> Self {
|
||||
let all = Self.allCases
|
||||
let idx = all.firstIndex(of: self)!
|
||||
let next = all.index(after: idx)
|
||||
let index = all.firstIndex(of: self)!
|
||||
let next = all.index(after: index)
|
||||
return all[next == all.endIndex ? all.startIndex : next]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user