We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 641cb66 commit 3d7c0a6Copy full SHA for 3d7c0a6
1 file changed
Sources/SwiftBoost/UIKit/Extensions/UIApplicationExtension.swift
@@ -12,11 +12,9 @@ public extension UIApplication {
12
var buildNumber: String? { Bundle.main.object(forInfoDictionaryKey: kCFBundleVersionKey as String) as? String }
13
14
func openSettings() {
15
- DispatchQueue.main.async {
16
- guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { return }
17
- if UIApplication.shared.canOpenURL(settingsUrl) {
18
- UIApplication.shared.open(settingsUrl, completionHandler: { _ in })
19
- }
+ guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { return }
+ if UIApplication.shared.canOpenURL(settingsUrl) {
+ UIApplication.shared.open(settingsUrl, completionHandler: { _ in })
20
}
21
22
0 commit comments