Skip to content

Commit

Permalink
Updated to NS_ENUM
Browse files Browse the repository at this point in the history
  • Loading branch information
Friend-LGA committed Nov 9, 2015
1 parent ea87888 commit ef6319f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LGSideMenuController.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'LGSideMenuController'
s.version = '1.0.5'
s.version = '1.0.6'
s.platform = :ios, '6.0'
s.license = 'MIT'
s.homepage = 'https://github.com/Friend-LGA/LGSideMenuController'
Expand Down
20 changes: 8 additions & 12 deletions LGSideMenuController/LGSideMenuController.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,43 +41,39 @@ static NSString *const kLGSideMenuControllerDidDismissRightViewNotification = @

@interface LGSideMenuController : UIViewController

typedef enum
typedef NS_OPTIONS(NSUInteger, LGSideMenuAlwaysVisibleOptions)
{
LGSideMenuAlwaysVisibleOnNone = 0,
LGSideMenuAlwaysVisibleOnPadLandscape = 1 << 0,
LGSideMenuAlwaysVisibleOnPadPortrait = 1 << 1,
LGSideMenuAlwaysVisibleOnPhoneLandscape = 1 << 2,
LGSideMenuAlwaysVisibleOnPhonePortrait = 1 << 3,
LGSideMenuAlwaysVisibleOnAll = 1 << 4
}
LGSideMenuAlwaysVisibleOptions;
};

typedef enum
typedef NS_OPTIONS(NSUInteger, LGSideMenuStatusBarVisibleOptions)
{
LGSideMenuStatusBarVisibleOnNone = 0,
LGSideMenuStatusBarVisibleOnPadLandscape = 1 << 0,
LGSideMenuStatusBarVisibleOnPadPortrait = 1 << 1,
LGSideMenuStatusBarVisibleOnPhoneLandscape = 1 << 2,
LGSideMenuStatusBarVisibleOnPhonePortrait = 1 << 3,
LGSideMenuStatusBarVisibleOnAll = 1 << 4
}
LGSideMenuStatusBarVisibleOptions;
};

typedef enum
typedef NS_ENUM(NSUInteger, LGSideMenuPresentationStyle)
{
LGSideMenuPresentationStyleSlideAbove = 0,
LGSideMenuPresentationStyleSlideBelow = 1,
LGSideMenuPresentationStyleScaleFromBig = 2,
LGSideMenuPresentationStyleScaleFromLittle = 3
}
LGSideMenuPresentationStyle;
};

typedef enum
typedef NS_ENUM(NSUInteger, LGSideMenuSwipeGestureArea)
{
LGSideMenuSwipeGestureAreaBorders = 0,
LGSideMenuSwipeGestureAreaFull = 1
}
LGSideMenuSwipeGestureArea;
};

@property (assign, nonatomic) IBOutlet UIViewController *rootViewController;

Expand Down

0 comments on commit ef6319f

Please sign in to comment.