From 632ebdff4d5a149797243a64948a10f8a6249dcf Mon Sep 17 00:00:00 2001 From: Alexander Rutsman Date: Mon, 15 Nov 2021 18:39:40 +0300 Subject: [PATCH] refactor: uialertaction -> voidclosure --- .../Views/Alert/Protocols/AlertInformative.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/TIUIElements/Sources/Views/Alert/Protocols/AlertInformative.swift b/TIUIElements/Sources/Views/Alert/Protocols/AlertInformative.swift index aa884525..a6345d6b 100644 --- a/TIUIElements/Sources/Views/Alert/Protocols/AlertInformative.swift +++ b/TIUIElements/Sources/Views/Alert/Protocols/AlertInformative.swift @@ -39,34 +39,34 @@ public protocol AlertInformative { /// An alert informing about something with one closing button (by default ["OK"]) func presentInfoAlert(title: String?, - infoAction: UIAlertAction?) + infoAction: VoidClosure?) /// An alert informing about something with one closing button (by default ["OK"]) func presentInfoAlert(title: String?, message: String?, - infoAction: UIAlertAction?) + infoAction: VoidClosure?) /// An alert informing about something with one closing button (by default ["OK"]) func presentInfoAlert(title: String?, message: String?, infoTitle: String?, infoStyle: UIAlertAction.Style, - infoAction: UIAlertAction?) + infoAction: VoidClosure?) /// Alert offering to repeat the action (with the "Repeat" and "Cancel" buttons) func presentRetryAlert(title: String?, message: String?, - retryAction: @escaping UIAlertAction) + retryAction: @escaping VoidClosure) /// Alert offering to repeat the action (with the "Repeat" and "Cancel" buttons) func presentRetryAlert(title: String?, message: String?, - retryAction: @escaping UIAlertAction, - cancelAction: UIAlertAction?) + retryAction: @escaping VoidClosure, + cancelAction: VoidClosure?) /// Alert with custom actions and cancel button func presentActionsAlert(title: String?, message: String?, actions: [UIAlertAction], - cancelAction: UIAlertAction?) + cancelAction: VoidClosure?) }