Skip to content

Commit 3a2ee04

Browse files
committed
Updated to NS_ENUM
1 parent b256018 commit 3a2ee04

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

LGPlusButtonsView.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'LGPlusButtonsView'
4-
s.version = '1.0.5'
4+
s.version = '1.0.6'
55
s.platform = :ios, '6.0'
66
s.license = 'MIT'
77
s.homepage = 'https://github.com/Friend-LGA/LGPlusButtonsView'

LGPlusButtonsView/LGPlusButtonsView.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,29 @@
4343

4444
@interface LGPlusButtonsView : UIView
4545

46-
typedef enum
46+
typedef NS_ENUM(NSUInteger, LGPlusButtonsViewPosition)
4747
{
4848
LGPlusButtonsViewPositionBottomRight = 0,
4949
LGPlusButtonsViewPositionBottomLeft = 1,
5050
LGPlusButtonsViewPositionTopRight = 2,
5151
LGPlusButtonsViewPositionTopLeft = 3
52-
}
53-
LGPlusButtonsViewPosition;
52+
};
5453

55-
typedef enum
54+
typedef NS_ENUM(NSUInteger, LGPlusButtonsAppearingAnimationType)
5655
{
5756
LGPlusButtonsAppearingAnimationTypeNone = 0,
5857
LGPlusButtonsAppearingAnimationTypeCrossDissolve = 1,
5958
LGPlusButtonsAppearingAnimationTypeCrossDissolveAndSlideHorizontal = 2,
6059
LGPlusButtonsAppearingAnimationTypeCrossDissolveAndSlideVertical = 3,
6160
LGPlusButtonsAppearingAnimationTypeCrossDissolveAndPop = 4
62-
}
63-
LGPlusButtonsAppearingAnimationType;
61+
};
6462

65-
typedef enum
63+
typedef NS_ENUM(NSUInteger, LGPlusButtonAnimationType)
6664
{
6765
LGPlusButtonAnimationTypeNone = 0,
6866
LGPlusButtonAnimationTypeRotate = 1,
6967
LGPlusButtonAnimationTypeCrossDissolve = 2
70-
}
71-
LGPlusButtonAnimationType;
68+
};
7269

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

0 commit comments

Comments
 (0)