Skip to content

Commit

Permalink
fixed api deviation
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Jiang committed Sep 13, 2016
1 parent 66e144a commit 919023a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Simplicity/Simplicity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class Simplicity {
}

/// Deep link handler (iOS9)
public static func application(_ app: UIApplication, openURL url: URL, options: [UIApplicationOpenURLOptionsKey: Any]) -> Bool {
public static func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey: Any]) -> Bool {
safari?.dismiss(animated: true, completion: nil)
guard let callback = callback, url.scheme == currentLoginProvider?.urlScheme else {
return false
Expand All @@ -47,8 +47,8 @@ public final class Simplicity {
}

/// Deep link handler (<iOS9)
public static func application(_ application: UIApplication, openURL url: URL, sourceApplication: String?, annotation: Any) -> Bool {
return self.application(application, openURL: url, options: [UIApplicationOpenURLOptionsKey: Any]())
public static func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
return self.application(application, open: url, options: [UIApplicationOpenURLOptionsKey: Any]())
}

private static func presentSafariView(_ url: URL) {
Expand Down

0 comments on commit 919023a

Please sign in to comment.