Skip to content

Commit 8a0b0d7

Browse files
authored
Add CustomStringConvertible conformance to maximum resolution (#56)
1 parent 8f9e48f commit 8a0b0d7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Sources/MuxUploadSDK/PublicAPI/Options/UploadOptions.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,19 @@ public struct UploadOptions {
187187

188188
}
189189

190+
extension UploadOptions.InputStandardization.MaximumResolution: CustomStringConvertible {
191+
public var description: String {
192+
switch self {
193+
case .preset1280x720:
194+
return "preset1280x720"
195+
case .preset1920x1080:
196+
return "preset1920x1080"
197+
case .default:
198+
return "default"
199+
}
200+
}
201+
}
202+
190203
extension UploadOptions: Codable { }
191204

192205
extension UploadOptions.EventTracking: Codable { }

0 commit comments

Comments
 (0)