From 315b85224e752c34f2afb65dcc111878596421d3 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 3 Apr 2022 13:47:19 +0200 Subject: [PATCH] Remove redunant update of player size --- Shared/Player/VideoPlayerView.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index 5eec75ee..15ffc0a8 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -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) }