Skip to content

Commit

Permalink
Video view animation removal (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos authored Sep 27, 2024
1 parent 1f3549b commit 5dd0341
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Demo/Sources/Players/PlaybackView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private struct MainView: View {
.supportsPictureInPicture(supportsPictureInPicture)
}
}
.opacity(player.mediaType != .unknown ? 1 : 0)
.animation(.easeIn(duration: 0.2), values: player.mediaType, player.isExternalPlaybackActive)
}

Expand Down
1 change: 0 additions & 1 deletion Sources/Player/UserInterface/VideoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public struct VideoView: View {
MonoscopicVideoView(player: player, orientation: orientation)
}
}
.opacity(player.mediaType != .unknown ? 1 : 0)
.onAppear {
PictureInPicture.shared.system.detach(with: player.queuePlayer)
PictureInPicture.shared.custom.onAppear(
Expand Down

0 comments on commit 5dd0341

Please sign in to comment.