SyntaxFix
Write A Post
Hire A Developer
Questions
Swift 4
I prefer to open setting in a safer way,
if let settingUrl = URL(string:UIApplicationOpenSettingsURLString) { UIApplication.shared.open(settingUrl) } else { print("Setting URL invalid") }