Add Playlists entry to sidebar main navigation

Adds a toggleable "Playlists" item that opens PlaylistsListView,
mirroring the Channels → ManageChannelsView pattern.
This commit is contained in:
Arkadiusz Fal
2026-04-17 04:12:39 +02:00
parent f8ca23308d
commit a660591e8d
4 changed files with 63 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ enum SidebarItem: Hashable, Identifiable {
case downloads
case subscriptionsFeed
case manageChannels
case playlistsList
// MARK: - Identifiable
@@ -73,6 +74,8 @@ enum SidebarItem: Hashable, Identifiable {
return "subscriptions-feed"
case .manageChannels:
return "manage-channels"
case .playlistsList:
return "playlists-list"
}
}
@@ -112,6 +115,8 @@ enum SidebarItem: Hashable, Identifiable {
return String(localized: "home.subscriptions.title")
case .manageChannels:
return String(localized: "sidebar.manageChannels")
case .playlistsList:
return String(localized: "home.playlists.title")
}
}
@@ -149,6 +154,8 @@ enum SidebarItem: Hashable, Identifiable {
return "play.square.stack.fill"
case .manageChannels:
return "person.2"
case .playlistsList:
return "list.bullet.rectangle"
}
}
@@ -180,6 +187,8 @@ enum SidebarItem: Hashable, Identifiable {
return .subscriptionsFeed
case .manageChannels:
return .manageChannels
case .playlistsList:
return .playlists
}
}