yattee/Extensions/AVKeyValueStatus+String.swift

22 lines
456 B
Swift
Raw Normal View History

2021-06-15 16:35:21 +00:00
import AVFoundation
import Foundation
extension AVKeyValueStatus {
var string: String {
switch self {
case .unknown:
return "unknown"
case .loading:
return "loading"
case .loaded:
return "loaded"
case .failed:
return "failed"
case .cancelled:
return "cancelled"
@unknown default:
return "unknown default"
}
}
}