Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos committed Feb 1, 2025
1 parent b524860 commit 375c40c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Demo/Sources/Extensions/URL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

extension URL: ExpressibleByStringLiteral {
extension URL: @retroactive ExpressibleByStringLiteral {
public init(stringLiteral value: StringLiteralType) {
self.init(string: value)!
}
Expand Down
2 changes: 1 addition & 1 deletion Demo/Sources/Players/VanillaPlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()!)
Expand Down

0 comments on commit 375c40c

Please sign in to comment.