Add settings to tvOS tab menu (fix #119)

This commit is contained in:
Arkadiusz Fal
2022-06-26 15:17:18 +02:00
parent e98dae6d48
commit 7c15fa6382
3 changed files with 135 additions and 113 deletions

View File

@@ -13,6 +13,9 @@ final class NavigationModel: ObservableObject {
case recentlyOpened(String)
case nowPlaying
case search
#if os(tvOS)
case settings
#endif
var stringValue: String {
switch self {
@@ -34,6 +37,10 @@ final class NavigationModel: ObservableObject {
return "recentlyOpened"
case .search:
return "search"
#if os(tvOS)
case .settings: // swiftlint:disable:this switch_case_alignment
return "settings"
#endif
default:
return ""
}