Skip to content

Commit

Permalink
Use open(_:options:completionHandler:)
Browse files Browse the repository at this point in the history
  • Loading branch information
delba committed Oct 17, 2019
1 parent f9b1178 commit ec2d3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Alert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class DeniedAlert: Alert {
NotificationCenter.default.addObserver(self, selector: .settingsHandler, name: UIApplication.didBecomeActiveNotification)

if let URL = URL(string: UIApplication.openSettingsURLString) {
UIApplication.shared.openURL(URL)
UIApplication.shared.open(URL)
}
}
}
Expand Down

0 comments on commit ec2d3dd

Please sign in to comment.