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 b256018 commit 3a2ee04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LGPlusButtonsView.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'LGPlusButtonsView'
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/LGPlusButtonsView'
Expand Down
15 changes: 6 additions & 9 deletions LGPlusButtonsView/LGPlusButtonsView.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,29 @@

@interface LGPlusButtonsView : UIView

typedef enum
typedef NS_ENUM(NSUInteger, LGPlusButtonsViewPosition)
{
LGPlusButtonsViewPositionBottomRight = 0,
LGPlusButtonsViewPositionBottomLeft = 1,
LGPlusButtonsViewPositionTopRight = 2,
LGPlusButtonsViewPositionTopLeft = 3
}
LGPlusButtonsViewPosition;
};

typedef enum
typedef NS_ENUM(NSUInteger, LGPlusButtonsAppearingAnimationType)
{
LGPlusButtonsAppearingAnimationTypeNone = 0,
LGPlusButtonsAppearingAnimationTypeCrossDissolve = 1,
LGPlusButtonsAppearingAnimationTypeCrossDissolveAndSlideHorizontal = 2,
LGPlusButtonsAppearingAnimationTypeCrossDissolveAndSlideVertical = 3,
LGPlusButtonsAppearingAnimationTypeCrossDissolveAndPop = 4
}
LGPlusButtonsAppearingAnimationType;
};

typedef enum
typedef NS_ENUM(NSUInteger, LGPlusButtonAnimationType)
{
LGPlusButtonAnimationTypeNone = 0,
LGPlusButtonAnimationTypeRotate = 1,
LGPlusButtonAnimationTypeCrossDissolve = 2
}
LGPlusButtonAnimationType;
};

@property (assign, nonatomic, readonly, getter=isShowing) BOOL showing;
@property (assign, nonatomic, getter=isAlwaysVisible) BOOL alwaysVisible;
Expand Down

0 comments on commit 3a2ee04

Please sign in to comment.