Skip to content

Commit

Permalink
Merge pull request #1937 from artsy/ashfurrow-hit-test
Browse files Browse the repository at this point in the history
Expands hit areas for toolbar
  • Loading branch information
orta authored Oct 18, 2016
2 parents fcf60b3 + a1c7383 commit e59b5a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Artsy/Views/Utilities/ARTabContentView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#import "ARDispatchManager.h"
#import "ARNavigationController.h"
#import "UIView+HitTestExpansion.h"

#import <ObjectiveSugar/ObjectiveSugar.h>

Expand Down Expand Up @@ -63,6 +64,7 @@ - (void)setButtons:(NSArray *)buttons
[self.buttons eachWithIndex:^(UIButton *button, NSUInteger index) {
button.enabled = [self.dataSource tabContentView:self canPresentViewControllerAtIndex:index];
[button addTarget:self action:@selector(buttonTapped:) forControlEvents:UIControlEventTouchUpInside];
[button ar_extendHitTestSizeByWidth:10 andHeight:20];
}];
}

Expand Down

0 comments on commit e59b5a0

Please sign in to comment.