mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Improve fullscreen animation
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user