Not sure whats the issue i am trying to open general setting from app so i use following code. But i notice the following code was working fine in sample application but not into my project where i want to implement
if let url = URL(string:UIApplication.openSettingsURLString) {
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}
any suggestions