Live Activities fix
This commit is contained in:
@@ -13,6 +13,7 @@ enum MANavigationDestination: Hashable {
|
||||
case album(MAAlbum)
|
||||
case playlist(MAPlaylist)
|
||||
case podcast(MAPodcast)
|
||||
case genre(MAGenre)
|
||||
}
|
||||
|
||||
/// ViewModifier to apply all navigation destinations consistently
|
||||
@@ -31,6 +32,9 @@ struct MANavigationDestinations: ViewModifier {
|
||||
.navigationDestination(for: MAPodcast.self) { podcast in
|
||||
PodcastDetailView(podcast: podcast)
|
||||
}
|
||||
.navigationDestination(for: MAGenre.self) { genre in
|
||||
GenreDetailView(genre: genre)
|
||||
}
|
||||
.navigationDestination(for: MANavigationDestination.self) { destination in
|
||||
switch destination {
|
||||
case .artist(let artist):
|
||||
@@ -41,6 +45,8 @@ struct MANavigationDestinations: ViewModifier {
|
||||
PlaylistDetailView(playlist: playlist)
|
||||
case .podcast(let podcast):
|
||||
PodcastDetailView(podcast: podcast)
|
||||
case .genre(let genre):
|
||||
GenreDetailView(genre: genre)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user