Skip to content

Instantly share code, notes, and snippets.

@drosenstark
Last active November 1, 2015 00:55
Show Gist options
  • Save drosenstark/91f4dd1f1f303cbdcfb9 to your computer and use it in GitHub Desktop.
Save drosenstark/91f4dd1f1f303cbdcfb9 to your computer and use it in GitHub Desktop.
IBInspectable, Interface Builder, Enums, Swift
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
@drosenstark
Copy link
Author

Um, actually I'm beginning to think this doesn't work at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment