Fix applying aspect ratio

This commit is contained in:
Arkadiusz Fal 2022-08-14 19:03:26 +02:00
parent ce4f07e788
commit 57d8698f86

View File

@ -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
}