Skip to content

Commit 3d7c0a6

Browse files
ivanvorobeiclaude
andcommitted
Remove redundant DispatchQueue.main.async in openSettings
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 641cb66 commit 3d7c0a6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Sources/SwiftBoost/UIKit/Extensions/UIApplicationExtension.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ public extension UIApplication {
1212
var buildNumber: String? { Bundle.main.object(forInfoDictionaryKey: kCFBundleVersionKey as String) as? String }
1313

1414
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-
}
15+
guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { return }
16+
if UIApplication.shared.canOpenURL(settingsUrl) {
17+
UIApplication.shared.open(settingsUrl, completionHandler: { _ in })
2018
}
2119
}
2220

0 commit comments

Comments
 (0)