Improve fullscreen animation

This commit is contained in:
Arkadiusz Fal
2022-08-06 15:27:34 +02:00
parent 5e1cb5a2fe
commit 28d3f29571
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