Add hd2160p60fps resolution (fix #118)

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

View File

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

View File

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