mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix AVPlayer layout
This commit is contained in:
parent
8d11a92f97
commit
0328656a44
@ -1079,7 +1079,9 @@ final class PlayerModel: ObservableObject {
|
|||||||
|
|
||||||
DispatchQueue.main.async { [weak self] in
|
DispatchQueue.main.async { [weak self] in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
self.aspectRatio = self.backend.aspectRatio
|
withAnimation {
|
||||||
|
self.aspectRatio = self.backend.aspectRatio
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ struct VideoPlayerSizeModifier: ViewModifier {
|
|||||||
|
|
||||||
func body(content: Content) -> some View {
|
func body(content: Content) -> some View {
|
||||||
content
|
content
|
||||||
.frame(maxWidth: geometry.size.width)
|
.frame(width: geometry.size.width)
|
||||||
.frame(maxHeight: maxHeight)
|
.frame(maxHeight: maxHeight)
|
||||||
|
|
||||||
#if !os(macOS)
|
#if !os(macOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user