Skip to content

Commit

Permalink
Adapt IBInspectable marqueeType to target only Interface Builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Nov 28, 2015
1 parent e281c91 commit 98d96b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MarqueeLabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,11 @@ typedef NS_ENUM(NSUInteger, MarqueeType) {
@see textAlignment
*/


#if TARGET_INTERFACE_BUILDER
@property (nonatomic, assign) IBInspectable NSInteger marqueeType;
#else
@property (nonatomic, assign) MarqueeType marqueeType;
#endif

/** Defines the duration of the scrolling animation.
Expand Down

0 comments on commit 98d96b1

Please sign in to comment.