Skip to content

Commit ee58de5

Browse files
committed
Fixing compile errors
1 parent 4bcd654 commit ee58de5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

IFTTT SDK/ASWebServiceAuthentication.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ final class ASWebServiceAuthentication: WebServiceAuthentication {
1616

1717
/// We must hold a reference to the session context provider so it's not deallocated.
1818
/// Only used with `ASWebAuthenticationSession` in iOS 13 and up.
19-
private var authenticationSessionContextProvider: AuthenticationSessionContextPresentationProvider?
19+
private var authenticationSessionContextPresentationProvider: AuthenticationSessionContextPresentationProvider?
2020

2121
/// Creates an instance of ASWebServiceAuthentication.
2222
/// - Parameters
2323
/// - authenticationSessionContextProvider: An optional instance of `AuthenticationSessionContextPresentationProvider` used in configuring the web service authentication object. Optional for iOS 12 but required for iOS 13 and up.
24-
init(authenticationSessionContextProvider: AuthenticationSessionContextPresentationProvider?) {
25-
self.authenticationSessionContextProvider = authenticationSessionContextProvider
24+
init(authenticationSessionContextPresentationProvider: AuthenticationSessionContextPresentationProvider?) {
25+
self.authenticationSessionContextPresentationProvider = authenticationSessionContextPresentationProvider
2626
}
2727

2828
@discardableResult
@@ -46,7 +46,7 @@ final class ASWebServiceAuthentication: WebServiceAuthentication {
4646
}
4747

4848
if #available(iOS 13.0, *) {
49-
asWebAuthenticationSession.presentationContextProvider = authenticationSessionContextProvider
49+
asWebAuthenticationSession.presentationContextProvider = authenticationSessionContextPresentationProvider
5050
asWebAuthenticationSession.prefersEphemeralWebBrowserSession = parameters.prefersEphemeralWebBrowserSession
5151
}
5252
self.session = asWebAuthenticationSession

IFTTT SDK/ConnectionVerificationSession.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class ConnectionVerificationSession {
4848
/// - presentationContext: The `UIWindow` instance to use in presenting the web auth flow. The system may present an alert.
4949
@available(iOS 13.0, *)
5050
func start(with url: URL, in presentationContext: UIWindow) {
51-
let service = ASWebServiceAuthentication(authenticationSessionPresentationContextProvider: .init(presentationContext: presentationContext))
51+
let service = ASWebServiceAuthentication(authenticationSessionContextPresentationProvider: .init(presentationContext: presentationContext))
5252
service.start(with: .init(url: url, callbackURLScheme: nil, prefersEphemeralWebBrowserSession: false)) { [weak self] result in
5353
switch result {
5454
case .success(let result):
@@ -74,7 +74,7 @@ final class ConnectionVerificationSession {
7474
@available(iOS, obsoleted: 13, message: "API is obsoleted in iOS 13. Please use `start(with url: URL, in presentationContext: UIWindow)` instead.")
7575
func start(from viewController: UIViewController, with url: URL) {
7676
if #available(iOS 12, *) {
77-
let service = ASWebServiceAuthentication(authenticationSessionContextProvider: nil)
77+
let service = ASWebServiceAuthentication(authenticationSessionContextPresentationProvider: nil)
7878
service.start(with: .init(url: url, callbackURLScheme: nil, prefersEphemeralWebBrowserSession: false)) { [weak self] result in
7979
switch result {
8080
case .success(let url):

0 commit comments

Comments
 (0)