Permalink
Browse files

switch to NS_ENUM

  • Loading branch information...
1 parent fb0fed9 commit f0eecab0c266d30ac4b2d63958aea14cc22c1548 @kgn committed Jan 10, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 KGNoise.h
View
@@ -50,20 +50,20 @@
#pragma mark - KGNoiseLinearGradientView
-typedef enum {
+NS_ENUM(NSUInteger, KGLinearGradientDirection){
KGLinearGradientDirection0Degrees, // Left to Right
KGLinearGradientDirection90Degrees, // Bottom to Top
KGLinearGradientDirection180Degrees, // Right to Left
KGLinearGradientDirection270Degrees // Top to Bottom
-} KGLinearGradientDirection;
+};
@interface KGNoiseLinearGradientView : KGNoiseView
#if TARGET_OS_IPHONE
@property (strong, nonatomic) UIColor *alternateBackgroundColor;
#else
@property (strong, nonatomic) NSColor *alternateBackgroundColor;
#endif
-@property (nonatomic) KGLinearGradientDirection gradientDirection;
+@property (nonatomic) enum KGLinearGradientDirection gradientDirection;
@end
#pragma mark - KGNoiseRadialGradientView

0 comments on commit f0eecab

Please sign in to comment.