Skip to content

Instantly share code, notes, and snippets.

@simonwuyts
Created June 5, 2017 12:50
Show Gist options
  • Save simonwuyts/a21142163e5acf94348d5b0c89f8c490 to your computer and use it in GitHub Desktop.
Save simonwuyts/a21142163e5acf94348d5b0c89f8c490 to your computer and use it in GitHub Desktop.
The Inspectables
@IBInspectable var arrowTopLeft: Bool = false
@IBInspectable var arrowTopCenter: Bool = true
@IBInspectable var arrowTopRight: Bool = false
@IBInspectable var arrowBottomLeft: Bool = false
@IBInspectable var arrowBottomCenter: Bool = false
@IBInspectable var arrowBottomRight: Bool = false
@IBInspectable var fillColor: UIColor = UIColor.white
@IBInspectable var borderColor: UIColor = UIColor(red:0, green:0, blue:0, alpha:0.05)
@IBInspectable var borderRadius: CGFloat = 18
@IBInspectable var borderWidth: CGFloat = 1
@IBInspectable var shadowColor: UIColor = UIColor(red:0, green:0, blue:0, alpha:0.14)
@IBInspectable var shadowOffsetX: CGFloat = 0
@IBInspectable var shadowOffsetY: CGFloat = 2
@IBInspectable var shadowBlur: CGFloat = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment