Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

Commit 3f2b7db

Browse files
authored
Merge pull request #283 from spotify/add-segmented-control-touch
Enables UISegmentedControl touch
2 parents de1cb44 + 449536f commit 3f2b7db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sources/HUBComponentWrapper.m

+5
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceive
432432
UIView *currentView = touch.view;
433433

434434
while (currentView != nil && currentView != self.view) {
435+
436+
if ([currentView isKindOfClass:[UISegmentedControl class]]) {
437+
return NO;
438+
}
439+
435440
if ([currentView isKindOfClass:[UIButton class]]) {
436441
return NO;
437442
}

0 commit comments

Comments
 (0)