1

Is there any way of opening a default iOS app from a universal link (for example the camera app).

If so, where can I find these public universal links?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Durdu
  • 4,649
  • 2
  • 27
  • 47

1 Answers1

3

Do you mean this functionality?

func open(_ scheme: String) {
    guard let url = URL(string: scheme) else {
        return
    }
    if UIApplication.shared.canOpenURL(url) {
        if #available(iOS 10.0, *) {
            UIApplication.shared.open(url)
        } else {
            UIApplication.shared.open(url as URL, options: [:], completionHandler: nil)
        }
    }
}

// usage:
open("App-Prefs:root")

Apple documentation about URL Schemes

Gist for iOS Settings

Eridana
  • 2,418
  • 23
  • 26