1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-09 19:10:32 +05:30

Remove redunant update of player size

This commit is contained in:
Arkadiusz Fal 2022-04-03 13:47:19 +02:00
parent 91bc909b37
commit 382cb30f2a

View File

@ -53,16 +53,11 @@ struct VideoPlayerView: View {
HStack(spacing: 0) {
content
.onAppear {
playerSize = geometry.size
#if os(iOS)
configureOrientationUpdatesBasedOnAccelerometer()
#endif
}
}
.onChange(of: geometry.size) { size in
self.playerSize = size
}
.onChange(of: fullScreenDetails) { value in
player.backend.setNeedsDrawing(!value)
}