Improve fullscreen animation

This commit is contained in:
Arkadiusz Fal
2022-08-06 15:27:34 +02:00
parent 8318b4c5fb
commit 5f5bd37bd4
5 changed files with 184 additions and 123 deletions

View File

@@ -37,12 +37,12 @@ struct VideoPlayerSizeModifier: ViewModifier {
return VideoPlayerView.defaultAspectRatio
}
return [aspectRatio, VideoPlayerView.defaultAspectRatio].min()!
return aspectRatio
}
var usedAspectRatioContentMode: ContentMode {
#if os(iOS)
!fullScreen ? .fit : .fill
fullScreen ? .fill : .fit
#else
.fit
#endif