Skip to content

Commit

Permalink
Merge pull request #62 from keisukeYamagishi/feature/remove-no-use-pa…
Browse files Browse the repository at this point in the history
…rameters

removed unnecessary parameters.
  • Loading branch information
keisukeYamagishi authored Oct 31, 2023
2 parents 45fe474 + 8f6690d commit b354447
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 b354447

Please sign in to comment.