yattee/Extensions/AVKeyValueStatus+String.swift
2021-06-15 18:35:21 +02:00

22 lines
456 B
Swift

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"
}
}
}