From 375c40ce6d9844176400faa966cc9604c6e21734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20De=CC=81fago?= Date: Sat, 1 Feb 2025 15:35:06 +0100 Subject: [PATCH] Fix warnings --- Demo/Sources/Extensions/URL.swift | 2 +- Demo/Sources/Players/VanillaPlayerView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Demo/Sources/Extensions/URL.swift b/Demo/Sources/Extensions/URL.swift index e446460c8..19f7a541b 100644 --- a/Demo/Sources/Extensions/URL.swift +++ b/Demo/Sources/Extensions/URL.swift @@ -6,7 +6,7 @@ import Foundation -extension URL: ExpressibleByStringLiteral { +extension URL: @retroactive ExpressibleByStringLiteral { public init(stringLiteral value: StringLiteralType) { self.init(string: value)! } diff --git a/Demo/Sources/Players/VanillaPlayerView.swift b/Demo/Sources/Players/VanillaPlayerView.swift index 20c41dcc0..bc62f9875 100644 --- a/Demo/Sources/Players/VanillaPlayerView.swift +++ b/Demo/Sources/Players/VanillaPlayerView.swift @@ -31,7 +31,7 @@ extension VanillaPlayerView: SourceCodeViewable { // Workaround for FB13126425. Makes it possible to use `AVPlayer` as `@ObservableObject` to avoid memory leaks // in modal presentations. -extension AVPlayer: ObservableObject {} +extension AVPlayer: @retroactive ObservableObject {} #Preview { VanillaPlayerView(item: URLMedia.appleAdvanced_16_9_TS_HLS.playerItem()!)