Skip to content

Commit

Permalink
fix: Use UIApplication.openSettingsURLString
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Jan 12, 2024
1 parent a202b35 commit 69f24a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mail/Views/SplitView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ struct SplitView: View {
DiscoveryView(item: .setAsDefaultAppDiscovery) {
UserDefaults.shared.shouldPresentSetAsDefaultDiscovery = false
} completionHandler: { willSetAsDefault in
guard willSetAsDefault else { return }
openURL(DeeplinkConstants.iosPreferences)
guard willSetAsDefault, let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { return }
openURL(settingsUrl)
}
}
.sheet(isPresented: $isShowingSyncProfile) {
Expand Down

0 comments on commit 69f24a9

Please sign in to comment.