From 8cd9a5e86c7aa3531ccf2c9939adb7732970e86e Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 26 Jun 2022 23:37:43 +0200 Subject: [PATCH] Fix setting PiP delegate --- Shared/Player/VideoPlayerView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index d47d6de1..7d9a10f9 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -297,7 +297,7 @@ struct VideoPlayerView: View { pipDelegate.player = player player.pipDelegate = pipDelegate - player.pipController!.delegate = pipDelegate + player.pipController?.delegate = pipDelegate player.playerLayerView.playerLayer.player = player.avPlayerBackend.avPlayer } #endif