Closed innocarpe closed 5 years ago
I added .touchDownRepeat in #23 for test environment.
.touchDownRepeat
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { ... // Send the appropriate touch-down control event depending on how many times we've been tapped. ASControlNodeEvent controlEventMask = (theTouch.tapCount == 1) ? ASControlNodeEventTouchDown : ASControlNodeEventTouchDownRepeat; [self sendActionsForControlEvents:controlEventMask withEvent:event]; } }
But it's not needed in production environment.
UITouchStub
isHighlighted
tapCount
rx.isHighlighted
Thank you for your contribution!
Context
I added
.touchDownRepeat
in #23 for test environment.But it's not needed in production environment.
Changes
UITouchStub
internal class only for the spec which tests observingisHighlighted
tapCount
so thattapCount
can be manipulatedUITouchStub
to pass the test.touchDownRepeat
event fromrx.isHighlighted