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