Skip to content

Commit 70a27be

Browse files
authored
Merge pull request #264 from IFTTT/bugfix/fixing_deprecation_obseletion_warning
Fixing deprecation and obseletion message in AuthenticationSession
2 parents 4d27769 + 35142b2 commit 70a27be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IFTTT SDK/AuthenticationSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final class AuthenticationSession {
4141
/// - url: The url for an OAuth page
4242
/// - callbackURLScheme: The URL scheme used in the redirect or nil. If passing nil, the scheme must be defined in the app's plist.
4343
/// - completionHandler: Called when authentication finishes. Returns the Result.
44-
@available(iOS, deprecated: 13, obsoleted: 12, message: "API is deprecated in iOS 13 and obsoleted in iOS 12")
44+
@available(iOS, deprecated: 12, obsoleted: 13, message: "API is deprecated in iOS 12 and obsoleted in iOS 13")
4545
init(url: URL, callbackURLScheme: String? , completionHandler: @escaping (Result<URL, AuthenticationError>) -> Void) {
4646
let sessionCompletionHandler = { (url: URL?, error: Error?) -> Void in
4747
guard error == nil, let url = url else {

0 commit comments

Comments
 (0)