Skip to content

Commit

Permalink
removed unnecessary parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
keisukeYamagishi committed Oct 30, 2023
1 parent 562adbf commit 8f6690d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions RxAlert/UIViewController+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<OutputAction>
Expand All @@ -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)))
Expand Down

0 comments on commit 8f6690d

Please sign in to comment.