guard let url = URL(string: UIApplication.openSettingsURLString) else { return }
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.opne(url)
}
https://developer.apple.com/documentation/uikit/uiapplicationopensettingsurlstring?language=objc