File tree 1 file changed +4
-4
lines changed
Sources/_SwiftUINavigationState 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ public struct ConfirmationDialogState<Action>: Identifiable {
150
150
public init (
151
151
titleVisibility: ConfirmationDialogStateTitleVisibility ,
152
152
title: ( ) -> TextState ,
153
- @ButtonStateBuilder < Action > actions: ( ) -> [ ButtonState < Action > ] ,
153
+ @ButtonStateBuilder < Action > actions: ( ) -> [ ButtonState < Action > ] = { [ ] } ,
154
154
message: ( ( ) -> TextState ) ? = nil
155
155
) {
156
156
self . init (
@@ -170,7 +170,7 @@ public struct ConfirmationDialogState<Action>: Identifiable {
170
170
/// - message: The message for the dialog.
171
171
public init (
172
172
title: ( ) -> TextState ,
173
- @ButtonStateBuilder < Action > actions: ( ) -> [ ButtonState < Action > ] ,
173
+ @ButtonStateBuilder < Action > actions: ( ) -> [ ButtonState < Action > ] = { [ ] } ,
174
174
message: ( ( ) -> TextState ) ? = nil
175
175
) {
176
176
self . init (
@@ -200,8 +200,8 @@ public struct ConfirmationDialogState<Action>: Identifiable {
200
200
///
201
201
/// See `SwiftUI.Visibility` for more information.
202
202
public enum ConfirmationDialogStateTitleVisibility {
203
- /// The element may be visible or hidden depending on the policies of the
204
- /// component accepting the visibility configuration.
203
+ /// The element may be visible or hidden depending on the policies of the component accepting the
204
+ /// visibility configuration.
205
205
///
206
206
/// See `SwiftUI.Visibility.automatic` for more information.
207
207
case automatic
You can’t perform that action at this time.
0 commit comments