mirror of
https://github.com/yattee/yattee.git
synced 2025-01-10 11:30: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) {
|
HStack(spacing: 0) {
|
||||||
content
|
content
|
||||||
.onAppear {
|
.onAppear {
|
||||||
playerSize = geometry.size
|
|
||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
configureOrientationUpdatesBasedOnAccelerometer()
|
configureOrientationUpdatesBasedOnAccelerometer()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: geometry.size) { size in
|
|
||||||
self.playerSize = size
|
|
||||||
}
|
|
||||||
.onChange(of: fullScreenDetails) { value in
|
.onChange(of: fullScreenDetails) { value in
|
||||||
player.backend.setNeedsDrawing(!value)
|
player.backend.setNeedsDrawing(!value)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user