SHARE
TWEET

Untitled

a guest May 18th, 2015 977 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top