Skip to content

Commit 9299135

Browse files
hisavaliHitesh Savaliya
and
Hitesh Savaliya
authored
Updating documentation to demonstrate accurate use of AlertState<Action> handling (pointfreeco#125)
Co-authored-by: Hitesh Savaliya <[email protected]>
1 parent 6eb293c commit 9299135

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/SwiftUINavigationCore/AlertState.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ import SwiftUI
3636
/// ```swift
3737
/// class HomeScreenModel: ObservableObject {
3838
/// // ...
39-
/// func alertButtonTapped(_ action: AlertAction) {
39+
/// func alertButtonTapped(_ action: AlertAction?) {
4040
/// switch action {
4141
/// case .delete:
4242
/// // ...
4343
/// case .removeFromHomeScreen:
4444
/// // ...
45+
/// case .none:
46+
/// // ...
4547
/// }
4648
/// }
4749
/// }

0 commit comments

Comments
 (0)