You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could you please add an example code snippet on how to make use of this class?
I have following enum in my project.
enum VideoQuality: CaseIterable {
case noChange
case low
case medium
case high
var name: String {
switch self {
case .noChange:
return "Same as source"
case .low:
return "Low"
case .high:
return "High"
case .medium:
return "Medium"
}
}
var value: String {
switch self {
case .noChange:
return AVAssetExportPresetPassthrough
case .low:
return AVAssetExportPresetLowQuality
case .high:
return AVAssetExportPresetHighestQuality
case .medium:
return AVAssetExportPresetMediumQuality
}
}
}
Can you please provide a code snippet on how to use this enum into your class?
Could you please add an example code snippet on how to make use of this class?
I have following enum in my project.
Can you please provide a code snippet on how to use this enum into your class?