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:
parent
91bc909b37
commit
382cb30f2a
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user