Skip to content

Commit 9185c46

Browse files
committed
Cleans up spacing around generic types.
1 parent c62ca31 commit 9185c46

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/Action/UIKitExtensions/UIBarButtonItem+Action.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public extension Reactive where Base: UIBarButtonItem {
5656
.addDisposableTo(self.base.actionDisposeBag)
5757
}
5858

59-
public func bindTo<Input, Output>(action: Action<Input,Output>?, input: Input) {
59+
public func bindTo<Input, Output>(action: Action<Input, Output>?, input: Input) {
6060
self.bindTo(action: action) { _ in input}
6161
}
6262

Sources/Action/UIKitExtensions/UIButton+Rx.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public extension Reactive where Base: UIButton {
5555
/// Binds enabled state of action to button, and subscribes to rx_tap to execute action with given input transform.
5656
/// These subscriptions are managed in a private, inaccessible dispose bag. To cancel
5757
/// them, call bindToAction with another action or nil.
58-
public func bindTo<Input, Output>(action:Action<Input,Output>?, inputTransform: @escaping (Base) -> (Input)) {
58+
public func bindTo<Input, Output>(action:Action<Input, Output>?, inputTransform: @escaping (Base) -> (Input)) {
5959
// This effectively disposes of any existing subscriptions.
6060

6161
// Technically, this file is only included on tv/iOS platforms,
@@ -77,7 +77,7 @@ public extension Reactive where Base: UIButton {
7777
/// Binds enabled state of action to button, and subscribes to rx_tap to execute action with given input value.
7878
/// These subscriptions are managed in a private, inaccessible dispose bag. To cancel
7979
/// them, call bindToAction with another action or nil.
80-
public func bindTo<Input, Output>(action: Action<Input,Output>?, input: Input) {
80+
public func bindTo<Input, Output>(action: Action<Input, Output>?, input: Input) {
8181
self.bindTo(action: action) { _ in input }
8282
}
8383
}

Sources/Action/UIKitExtensions/UIControl+Rx.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public extension Reactive where Base: UIControl {
77
/// Binds enabled state of action to control, and subscribes action's execution to provided controlEvents.
88
/// These subscriptions are managed in a private, inaccessible dispose bag. To cancel
99
/// them, set the rx.action to nil or another action.
10-
public func bindTo<Input,Output>(action: Action<Input,Output>?, controlEvent: ControlEvent<Void>, inputTransform: @escaping (Base) -> (Input)) {
10+
public func bindTo<Input, Output>(action: Action<Input, Output>?, controlEvent: ControlEvent<Void>, inputTransform: @escaping (Base) -> (Input)) {
1111
// This effectively disposes of any existing subscriptions.
1212
self.base.resetActionDisposeBag()
1313

0 commit comments

Comments
 (0)