Last active
November 1, 2015 00:55
-
-
Save drosenstark/91f4dd1f1f303cbdcfb9 to your computer and use it in GitHub Desktop.
IBInspectable, Interface Builder, Enums, Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum RingPosition : Int { | |
case None, Outer, Inner | |
// not necessary to do this: case None=0, Outer=1, Inner=2 | |
} | |
#if !TARGET_INTERFACE_BUILDER | |
@IBInspectable var ringPosition : RingPosition = .None | |
#else | |
@IBInspectable var ringPosition : Int = 0 | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Um, actually I'm beginning to think this doesn't work at all.