mirror of
https://github.com/yattee/yattee.git
synced 2024-12-12 21:30:32 +05:30
Fix applying aspect ratio
This commit is contained in:
parent
ce4f07e788
commit
57d8698f86
@ -33,7 +33,7 @@ struct VideoPlayerSizeModifier: ViewModifier {
|
||||
}
|
||||
|
||||
var usedAspectRatio: Double {
|
||||
guard let aspectRatio = aspectRatio, aspectRatio != 0 else {
|
||||
guard let aspectRatio = aspectRatio, aspectRatio > 0, aspectRatio < VideoPlayerView.defaultAspectRatio else {
|
||||
return VideoPlayerView.defaultAspectRatio
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user