From 88627adc751c1b17440c514f0690a671ece228b8 Mon Sep 17 00:00:00 2001 From: Sven Tiigi Date: Sun, 11 Aug 2024 09:02:05 +0200 Subject: [PATCH] Remove assume isolated --- Sources/HostingView/YouTubePlayerHostingView.swift | 4 +--- Sources/ViewController/YouTubePlayerViewController.swift | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Sources/HostingView/YouTubePlayerHostingView.swift b/Sources/HostingView/YouTubePlayerHostingView.swift index 3ccdb69..3b0da1e 100644 --- a/Sources/HostingView/YouTubePlayerHostingView.swift +++ b/Sources/HostingView/YouTubePlayerHostingView.swift @@ -62,9 +62,7 @@ public final class YouTubePlayerHostingView: YouTubePlayerHostingBaseView { /// Deinit deinit { - MainActor.assumeIsolated { - self.player.pause() - } + self.player.pause() } } diff --git a/Sources/ViewController/YouTubePlayerViewController.swift b/Sources/ViewController/YouTubePlayerViewController.swift index d125fc7..c33a33f 100644 --- a/Sources/ViewController/YouTubePlayerViewController.swift +++ b/Sources/ViewController/YouTubePlayerViewController.swift @@ -61,9 +61,7 @@ public final class YouTubePlayerViewController: YouTubePlayerBaseViewController /// Deinit deinit { - MainActor.assumeIsolated { - self.player.pause() - } + self.player.pause() } // MARK: View-Lifecycle