Skip to content

Commit

Permalink
Merge pull request #7 from modmed/swipe-gesture-doesnt-work-for-navba…
Browse files Browse the repository at this point in the history
…rOverlay

support swipe up gesture when message position is navbaroverlay
  • Loading branch information
Manny-ModMed authored Apr 16, 2019
2 parents 4eff2b2 + 60bf7eb commit 3129981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TSMessages/Classes/TSMessageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ - (id)initWithTitle:(NSString *)title
{
UISwipeGestureRecognizer *gestureRec = [[UISwipeGestureRecognizer alloc] initWithTarget:self
action:@selector(fadeMeOut)];
[gestureRec setDirection:(self.messagePosition == TSMessageNotificationPositionTop ?
[gestureRec setDirection:(self.messagePosition == TSMessageNotificationPositionTop || self.messagePosition == TSMessageNotificationPositionNavBarOverlay ?
UISwipeGestureRecognizerDirectionUp :
UISwipeGestureRecognizerDirectionDown)];
[self addGestureRecognizer:gestureRec];
Expand Down

0 comments on commit 3129981

Please sign in to comment.