1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 06:40:32 +05:30

Add hd2160p60fps resolution (fix #118)

This commit is contained in:
Arkadiusz Fal 2022-04-09 23:19:00 +02:00
parent d973340cd0
commit 974b3d7d93
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import Foundation
// swiftlint:disable:next final_class // swiftlint:disable:next final_class
class Stream: Equatable, Hashable, Identifiable { class Stream: Equatable, Hashable, Identifiable {
enum Resolution: String, CaseIterable, Comparable, Defaults.Serializable { enum Resolution: String, CaseIterable, Comparable, Defaults.Serializable {
case hd2160p60
case hd2160p case hd2160p
case hd1440p60 case hd1440p60
case hd1440p case hd1440p

View File

@ -96,6 +96,7 @@ extension Defaults.Keys {
enum ResolutionSetting: String, CaseIterable, Defaults.Serializable { enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
case best case best
case hd2160p60
case hd2160p case hd2160p
case hd1440p60 case hd1440p60
case hd1440p case hd1440p
@ -111,7 +112,7 @@ enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
var value: Stream.Resolution { var value: Stream.Resolution {
switch self { switch self {
case .best: case .best:
return .hd2160p return .hd2160p60
default: default:
return Stream.Resolution(rawValue: rawValue)! return Stream.Resolution(rawValue: rawValue)!
} }