Keep Settings in the tvOS sidebar (#986)

tvOS has no other route to Settings, so unchecking it in Sidebar settings
locked users out. Treat Settings as a required sidebar item on tvOS; an
already-stored hidden value is ignored because required items bypass the
visibility map.
This commit is contained in:
Arkadiusz Fal
2026-10-19 21:43:46 +02:00
parent 13eb89abc0
commit ef372b65d9
2 changed files with 8 additions and 1 deletions

View File

@@ -110,6 +110,13 @@ enum SidebarMainItem: String, CaseIterable, Codable, Identifiable, Sendable {
switch self {
case .search, .home:
return true
case .settings:
// tvOS has no other route to Settings, so hiding it would lock the user out.
#if os(tvOS)
return true
#else
return false
#endif
default:
return false
}