Add Continue Watching toggle to sidebar settings

Exposes ContinueWatchingView as an opt-in main sidebar item,
hidden by default.
This commit is contained in:
Arkadiusz Fal
2026-04-17 21:22:25 +02:00
parent 2761fcbcfb
commit c0184712a9
4 changed files with 65 additions and 3 deletions

View File

@@ -37,6 +37,7 @@ enum SidebarItem: Hashable, Identifiable {
case subscriptionsFeed
case manageChannels
case playlistsList
case continueWatching
// MARK: - Identifiable
@@ -76,6 +77,8 @@ enum SidebarItem: Hashable, Identifiable {
return "manage-channels"
case .playlistsList:
return "playlists-list"
case .continueWatching:
return "continue-watching"
}
}
@@ -117,6 +120,8 @@ enum SidebarItem: Hashable, Identifiable {
return String(localized: "sidebar.manageChannels")
case .playlistsList:
return String(localized: "home.playlists.title")
case .continueWatching:
return String(localized: "home.continueWatching.title")
}
}
@@ -156,6 +161,8 @@ enum SidebarItem: Hashable, Identifiable {
return "person.2"
case .playlistsList:
return "list.bullet.rectangle"
case .continueWatching:
return "play.circle"
}
}
@@ -189,6 +196,8 @@ enum SidebarItem: Hashable, Identifiable {
return .manageChannels
case .playlistsList:
return .playlists
case .continueWatching:
return .continueWatching
}
}