diff --git a/Sources/UIKitNavigation/Navigation/UIAlertController.swift b/Sources/UIKitNavigation/Navigation/UIAlertController.swift index 0151edcdf..f712d16be 100644 --- a/Sources/UIKitNavigation/Navigation/UIAlertController.swift +++ b/Sources/UIKitNavigation/Navigation/UIAlertController.swift @@ -14,7 +14,7 @@ /// - handler: A closure that is invoked with an action held in `state`. public convenience init( state: AlertState, - handler: @escaping (_ action: Action?) -> Void + handler: @escaping (_ action: Action?) -> Void = { (_: Never?) in } ) { self.init( title: String(state: state.title), @@ -34,7 +34,7 @@ /// - handler: A closure that is invoked with an action held in `state`. public convenience init( state: ConfirmationDialogState, - handler: @escaping (_ action: Action?) -> Void + handler: @escaping (_ action: Action?) -> Void = { (_: Never?) in } ) { self.init( title: state.titleVisibility == .visible ? String(state: state.title) : nil, @@ -71,7 +71,7 @@ extension UIAlertAction { public convenience init( _ button: ButtonState, - action handler: @escaping (_ action: Action?) -> Void + action handler: @escaping (_ action: Action?) -> Void = { (_: Never?) in } ) { self.init( title: String(state: button.label),