Advertisement
Guest User

Untitled

a guest
May 18th, 2015
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. // Enum
  2. var shape:StatusShape = .Rectangle
  3.  
  4. // Adapter
  5. @IBInspectable var shapeAsInt:Int = 0 {
  6. set {
  7. self.shape = StatusShape(rawValue: newValue) ?? .Rectangle
  8. }
  9. get {
  10. return StatusShape.rawValue
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement