Skip to content

Conversation

@fabb
Copy link
Collaborator

@fabb fabb commented Mar 8, 2016

⚠️ Not yet finished, do not merge

Introduced IntegratedReactiveGestureReactor which does not use the semi-imperative way of receiving gesture events.

The unit tests still need to be developed, some way needs to be found to create mock gesture events.

@fabb
Copy link
Collaborator Author

fabb commented Mar 8, 2016

For mocking, it would be better if IntegratedReactiveGestureReactor was initialized with events of type ControlEvent<UIGestureRecognizerType>. Unfortunately RxCocoa's rx_event creates ControlEvent<UIGestureRecognizer> which seems not castable. Asked a question about this on StackOverflow: http://stackoverflow.com/questions/35862869/swift-covariant-generics

✅ ok, found a solution: d3c73b3

XCTAssertNotNil(mockTimer)
}

func testBeganBothGesturesAndEndedRotate() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this unit test fails - no idea why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants