Skip to content

Commit ffb40b9

Browse files
committed
fixed typo, as it's 'gesture' not 'guesture'
1 parent 05bd824 commit ffb40b9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

functional-reactive-intuition/Project/RFP/ReactiveGestureReactor.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ class ReactiveGestureReactor: GestureReactor {
2424
// Passing on the UIGesture at this point is dodgy as it's a reference
2525
// It's state will change and render our filter useless.
2626
// We therefore keep just the state in our observable buffers [.Began,.Began,.Ended]
27-
let rotateGuesturesStartedEnded = rotateVariable.asObservable().filter { gesture in gesture?.state == .Began || gesture?.state == .Ended}.flatMap { (gesture) -> Observable<UIGestureRecognizerState> in
27+
let rotateGesturesStartedEnded = rotateVariable.asObservable().filter { gesture in gesture?.state == .Began || gesture?.state == .Ended}.flatMap { (gesture) -> Observable<UIGestureRecognizerState> in
2828
return Observable.just(gesture!.state)
2929
}
3030

31-
let panGuesturesStartedEnded = panVariable.asObservable().filter { gesture in gesture?.state == .Began || gesture?.state == .Ended}.flatMap { (gesture) -> Observable<UIGestureRecognizerState> in
31+
let panGesturesStartedEnded = panVariable.asObservable().filter { gesture in gesture?.state == .Began || gesture?.state == .Ended}.flatMap { (gesture) -> Observable<UIGestureRecognizerState> in
3232
return Observable.just(gesture!.state)
3333
}
3434

3535
// Combine our latest .Began and .Ended from both Pan and Rotate.
3636
// If they are the same then return the same state. If not then return a Failed.
37-
let combineStartEndGuestures = Observable.combineLatest(panGuesturesStartedEnded, rotateGuesturesStartedEnded) { (panState, rotateState) -> Observable<UIGestureRecognizerState> in
37+
let combineStartEndGestures = Observable.combineLatest(panGesturesStartedEnded, rotateGesturesStartedEnded) { (panState, rotateState) -> Observable<UIGestureRecognizerState> in
3838

3939
var state = UIGestureRecognizerState.Failed //a bit of misuse ;)
4040

@@ -48,12 +48,12 @@ class ReactiveGestureReactor: GestureReactor {
4848

4949

5050
// condition: when both pan and rotate has begun
51-
let bothGesturesStarted = combineStartEndGuestures.switchLatest().filter { (state) -> Bool in
51+
let bothGesturesStarted = combineStartEndGestures.switchLatest().filter { (state) -> Bool in
5252
state == .Began
5353
}
5454

5555
// condition: when both pan and rotate has Ended
56-
let bothGesturesEnded = combineStartEndGuestures.switchLatest().filter { (state) -> Bool in
56+
let bothGesturesEnded = combineStartEndGestures.switchLatest().filter { (state) -> Bool in
5757
state == .Ended
5858
}
5959

0 commit comments

Comments
 (0)