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

Enables UISegmentedControl touch #283

Merged
merged 1 commit into from
Feb 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sources/HUBComponentWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,11 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceive
UIView *currentView = touch.view;

while (currentView != nil && currentView != self.view) {

Copy link
Contributor

Choose a reason for hiding this comment

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

🎨 Remove the empty line

if ([currentView isKindOfClass:[UISegmentedControl class]]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering if we should not add this check and instead change the UIButton check to UIControl?

@mhallendal @cerihughes What do you and CA think?

return NO;
}

if ([currentView isKindOfClass:[UIButton class]]) {
return NO;
}
Expand Down