mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Animations improvements
This commit is contained in:
@@ -157,6 +157,7 @@ struct AppTabNavigation: View {
|
||||
.environmentObject(subscriptions)
|
||||
.environmentObject(thumbnailsModel)
|
||||
.id("channelVideos")
|
||||
.zIndex(player.presentingPlayer ? -1 : 2)
|
||||
.transition(.move(edge: .bottom))
|
||||
}
|
||||
}
|
||||
@@ -171,6 +172,7 @@ struct AppTabNavigation: View {
|
||||
.environmentObject(subscriptions)
|
||||
.environmentObject(thumbnailsModel)
|
||||
.id("channelPlaylist")
|
||||
.zIndex(player.presentingPlayer ? -1 : 1)
|
||||
.transition(.move(edge: .bottom))
|
||||
}
|
||||
}
|
||||
|
@@ -133,7 +133,8 @@ struct ContentView: View {
|
||||
@ViewBuilder var videoPlayer: some View {
|
||||
if player.presentingPlayer {
|
||||
playerView
|
||||
.transition(.move(edge: .bottom))
|
||||
.transition(.asymmetric(insertion: .identity, removal: .move(edge: .bottom)))
|
||||
.zIndex(3)
|
||||
} else if player.activeBackend == .appleAVPlayer {
|
||||
#if os(iOS)
|
||||
playerView.offset(y: UIScreen.main.bounds.height)
|
||||
|
Reference in New Issue
Block a user