-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
AlertState.init
availability (#198)
In SwiftUI Navigation 1.0, `AlertState` had many initializers to match the various interfaces in SwiftUI, and they matched the availability of the SwiftUI interfaces. We simplified to a single interface in 2.0, but didn't consider the availability mismatch. While we could bring back the old APIs, it might be nice to favor the modern builder style. The one caveat is that it will be possible to render alerts pre-iOS 15 that are configured with more than the maximum 2 buttons at that time. We can emit a runtime warning if we detect this, but we are losing some of the compile-time check of the previous version.
- Loading branch information
1 parent
dfe94f7
commit 47cfd14
Showing
2 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters