Playlists support

This commit is contained in:
Arkadiusz Fal
2021-06-26 11:39:35 +02:00
parent 594c77b7d4
commit b336d2c512
14 changed files with 189 additions and 85 deletions

View File

@@ -1,5 +1,4 @@
import AVFoundation
import Foundation
extension AVKeyValueStatus {
var string: String {

View File

@@ -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]
}
}