Skip to content

Commit e96e714

Browse files
committed
Fix Swiftlint warnings
1 parent 929b33c commit e96e714

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

Source/RxCocoa/UIViewPropertyAnimator+Rx.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import RxCocoa
1313

1414
@available(iOS 10.0, *)
1515
public extension Reactive where Base: UIViewPropertyAnimator {
16-
1716
/**
1817
Bindable extension for `fractionComplete` property.
1918
*/
@@ -22,7 +21,7 @@ public extension Reactive where Base: UIViewPropertyAnimator {
2221
propertyAnimator.fractionComplete = fractionComplete
2322
}
2423
}
25-
24+
2625
/// Provides a Completable that triggers the UIViewPropertyAnimator upon subscription
2726
/// and completes once the animation ends.
2827
///

Tests/RxCocoa/UIViewPropertyAnimatorTests+Rx.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ import RxTest
1414
import UIKit
1515

1616
class UIViewPropertyAnimatorTests: XCTestCase {
17-
1817
var disposeBag: DisposeBag!
19-
18+
2019
override func setUp() {
2120
disposeBag = DisposeBag()
2221
}
@@ -41,22 +40,22 @@ class UIViewPropertyAnimatorTests: XCTestCase {
4140

4241
waitForExpectations(timeout: 1)
4342
}
44-
43+
4544
@available(iOS 10.0, *)
4645
func testBindToFractionCompleted() {
4746
let animator = UIViewPropertyAnimator(
4847
duration: 0, curve: .linear, animations: { }
4948
)
50-
49+
5150
let subject = PublishSubject<CGFloat>()
52-
51+
5352
subject
5453
.bind(to: animator.rx.fractionComplete)
5554
.disposed(by: disposeBag)
56-
55+
5756
subject.onNext(0.3)
5857
XCTAssertEqual(animator.fractionComplete, 0.3)
59-
58+
6059
subject.onNext(0.5)
6160
XCTAssertEqual(animator.fractionComplete, 0.5)
6261
}

Tests/RxSwift/ToSortedArrayTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// ToSortedArrayTests.swift
33
// RxSwiftExt
44
//
5-
// Created by Joan Disho on 28.04.18.
6-
// Copyright © 2018 RxSwiftCommunity. All rights reserved.
5+
// Created by Joan Disho on 28/04/18.
6+
// Copyright © 2018 RxSwift Community. All rights reserved.
77
//
88

99
import XCTest

0 commit comments

Comments
 (0)