Skip to content

Commit

Permalink
fix #30 - implement bit mask for directions enum
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbannastya committed Mar 23, 2015
1 parent 15efd15 commit b21c3bb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ZLSwipeableView/ZLSwipeableView.h
Original file line number Diff line number Diff line change
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 b21c3bb

Please sign in to comment.