From 974b3d7d93f472711c4ef5b0eac585dac4fbea57 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 9 Apr 2022 23:19:00 +0200 Subject: [PATCH] Add hd2160p60fps resolution (fix #118) --- Model/Stream.swift | 1 + Shared/Defaults.swift | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Model/Stream.swift b/Model/Stream.swift index 822720e7..4acd5d87 100644 --- a/Model/Stream.swift +++ b/Model/Stream.swift @@ -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 diff --git a/Shared/Defaults.swift b/Shared/Defaults.swift index bd01acb1..91ee53b5 100644 --- a/Shared/Defaults.swift +++ b/Shared/Defaults.swift @@ -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)! }