Closed Kirow closed 5 years ago
'cannot assign to property' fix
this change will solve cannot assign to property: 'self' is immutable error for cases when trying to assign property inside subclass c-tor
cannot assign to property: 'self' is immutable
class MyButtonSubclass: UIButton { override init(frame: CGRect) { super.init(frame: frame) isHaptic = true hapticType = .impact(.heavy) } }
Thanks!!!!!
'cannot assign to property' fix
Checklist
Motivation and Context
this change will solve
cannot assign to property: 'self' is immutable
error for cases when trying to assign property inside subclass c-torSample code: