From 8f6690d18a72d779c62d18eb099688e96e22e3de Mon Sep 17 00:00:00 2001 From: keisukeYamagishi Date: Mon, 30 Oct 2023 18:56:21 +0900 Subject: [PATCH] removed unnecessary parameters. --- RxAlert/UIViewController+.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RxAlert/UIViewController+.swift b/RxAlert/UIViewController+.swift index fb39b23..eb2d854 100644 --- a/RxAlert/UIViewController+.swift +++ b/RxAlert/UIViewController+.swift @@ -60,7 +60,6 @@ public extension Reactive where Base: UIViewController { message: String? = nil, actions: [AlertAction] = [AlertAction(title: "OK")], preferredStyle: UIAlertController.Style = .alert, - vc: UIViewController? = nil, tintColor: UIColor? = nil, animated: Bool = true, completion: (() -> Void)? = nil) -> Observable @@ -76,7 +75,7 @@ public extension Reactive where Base: UIViewController { text.config(textField) } } else { - alertController?.addAction(UIAlertAction(title: action.title, style: action.style, handler: {[weak alertController] alertAction in + alertController?.addAction(UIAlertAction(title: action.title, style: action.style, handler: { [weak alertController] alertAction in observer.on(.next(OutputAction(index: action.type, textFields: alertController?.textFields, alertAction: alertAction)))