Can I implement this in Swift with Extensions without the need to inheritance?. I get this error Extensions May not contain Stored properties
extension UIB
You can override the setter/getter so that it isn't a stored property and just forwards the set/get to the layer.
extension UIButton { @IBInspectable var borderWidth : CGFloat { set { layer.borderWidth = newValue } get { return layer.borderWidth } } }