Answers for "Open settings swift"

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"

Browse Popular Code Answers by Language