Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lapinek/e1a4c7920ab70a2bccb58625ff064489 to your computer and use it in GitHub Desktop.
Save lapinek/e1a4c7920ab70a2bccb58625ff064489 to your computer and use it in GitHub Desktop.
// OIDExternalUserAgentIOSSafari.swift
// . . .
if #available(iOS 10.0, *) {
openedSafari = UIApplication.shared.canOpenURL(requestURL!)
UIApplication.shared.open(requestURL!, options: [:], completionHandler: nil)
} else {
openedSafari = UIApplication.shared.openURL(requestURL!)
}
// . . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment