I\'m trying to create a subclass of UIBezierPath to add some properties that are useful to me.
class MyUIBezierPath : UIBezierPath {
var selectedForLazo :
I found this simple workaround that seems to do its job.
class MyUIBezierPath : UIBezierPath {
var selectedForLazo : Bool! = false
override init() {
super.init()
}
init(rect: CGRect){
super.init()
self.appendPath(UIBezierPath(rect: rect))
}
init(roundedRect: CGRect, cornerRadius: CGFloat) {
super.init()
self.appendPath(UIBezierPath(roundedRect: roundedRect, cornerRadius: cornerRadius))
}
required init(coder aDecoder: NSCoder) {
super.init()
}
}
Please post other solutions because they'll surely be better than mine.