I need to open my application settings but sometime if we have opened setting other screen as like wifi or proxy screen then it does not redirect to App's settings in iOS 13.
@IBAction func openPhoneSettings(_ sender: Any) {
guard let settingsUrl = URL(string: UIApplication.openSettingsURLString),
UIApplication.shared.canOpenURL(settingsUrl) else {
return
}
UIApplication.shared.open(settingsUrl, options: [:]) { (canOpen) in
self.dismiss(animated: false, completion: nil)
}
}