diff --git a/Sources/Apple/AppleAuthenticator+PovioKitAuth.swift b/Sources/Apple/AppleAuthenticator+PovioKitAuth.swift index 2ea0f36..729540d 100644 --- a/Sources/Apple/AppleAuthenticator+PovioKitAuth.swift +++ b/Sources/Apple/AppleAuthenticator+PovioKitAuth.swift @@ -10,7 +10,7 @@ import AuthenticationServices import CryptoKit import UIKit -extension UIViewController: ASAuthorizationControllerPresentationContextProviding { +extension UIViewController: @retroactive ASAuthorizationControllerPresentationContextProviding { public func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { view.window ?? UIWindow() } diff --git a/Sources/LinkedIn/Core/URL+PovioKitAuth.swift b/Sources/LinkedIn/Core/URL+PovioKitAuth.swift index 616343a..09af1b3 100644 --- a/Sources/LinkedIn/Core/URL+PovioKitAuth.swift +++ b/Sources/LinkedIn/Core/URL+PovioKitAuth.swift @@ -8,7 +8,7 @@ import Foundation -extension URL: ExpressibleByStringLiteral { +extension URL: @retroactive ExpressibleByStringLiteral { public init(stringLiteral value: String) { guard let url = URL(string: value) else { fatalError("Invalid URL string!") diff --git a/Sources/LinkedIn/WebView/LinkedInWebView.swift b/Sources/LinkedIn/WebView/LinkedInWebView.swift index 2afcb02..f604282 100644 --- a/Sources/LinkedIn/WebView/LinkedInWebView.swift +++ b/Sources/LinkedIn/WebView/LinkedInWebView.swift @@ -7,7 +7,7 @@ // import SwiftUI -import WebKit +@preconcurrency import WebKit @available(iOS 15.0, *) public struct LinkedInWebView: UIViewRepresentable {