Skip to content

Commit

Permalink
Merge pull request #35 from gorbannastya/fix_directions_bug
Browse files Browse the repository at this point in the history
implement bit mask for directions enum
  • Loading branch information
zhxnlai committed Mar 23, 2015
2 parents 15efd15 + b21c3bb commit 333636c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ZLSwipeableView/ZLSwipeableView.h
Expand Up @@ -10,16 +10,16 @@

typedef NS_ENUM(NSUInteger, ZLSwipeableViewDirection) {
ZLSwipeableViewDirectionNone = 0,
ZLSwipeableViewDirectionLeft,
ZLSwipeableViewDirectionLeft = (1 << 0),
ZLSwipeableViewDirectionRight = (1 << 1),
ZLSwipeableViewDirectionHorizontal = ZLSwipeableViewDirectionLeft |
ZLSwipeableViewDirectionRight,
ZLSwipeableViewDirectionHorizontal = ZLSwipeableViewDirectionLeft |
ZLSwipeableViewDirectionRight,
ZLSwipeableViewDirectionUp,
ZLSwipeableViewDirectionDown,
ZLSwipeableViewDirectionVertical = ZLSwipeableViewDirectionUp |
ZLSwipeableViewDirectionDown,
ZLSwipeableViewDirectionAll = ZLSwipeableViewDirectionLeft |
ZLSwipeableViewDirectionRight | ZLSwipeableViewDirectionUp | ZLSwipeableViewDirectionDown,
ZLSwipeableViewDirectionUp = (1 << 2),
ZLSwipeableViewDirectionDown = (1 << 3),
ZLSwipeableViewDirectionVertical = ZLSwipeableViewDirectionUp |
ZLSwipeableViewDirectionDown,
ZLSwipeableViewDirectionAll = ZLSwipeableViewDirectionLeft |
ZLSwipeableViewDirectionRight | ZLSwipeableViewDirectionUp | ZLSwipeableViewDirectionDown,
};

@class ZLSwipeableView;
Expand Down

0 comments on commit 333636c

Please sign in to comment.