I keep seeing that you can use
if UIApplication.shared.canOpenURL(settingsUrl) {
UIApplication.shared.open(settingsUrl, completionHandler: { (success) in
print("Settings opened: \(success)")
})
}
but it only works for iOS 10 and above. But how can I do the same thing for iOS 8?