Answers for "swift open app settings programmatically"

1

swift open settings page

guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else {
  return
}

if UIApplication.shared.canOpenURL(settingsUrl) {
  UIApplication.shared.open(settingsUrl, completionHandler: { (success) in
                                                             print("Settings opened: \(success)") // Prints true
                                                            })
}
Posted by: Guest on March-04-2020

Code answers related to "swift open app settings programmatically"

Code answers related to "Swift"

Browse Popular Code Answers by Language