Open topslave opened 5 years ago
Hi, I did a pod update and I am getting "Type 'UIControl' has no member 'Event'" what do you think would be the reason? thanks
for: UIControl.Event.editingChanged for: UIControl.Event.editingChanged @IBInspectable public var maxLength: Int { get { guard let length = maxLengths[self] else { return Int.max } return length } set { maxLengths[self] = newValue addTarget( self, action: #selector(limitLength), for: UIControl.Event.editingChanged ) } }
hi By the way, I am still using Swift 4.1 Thanks
What version of the plugin are you using? There's v2.0.0 that is only compatible with Swift 4.2
Hi, I did a pod update and I am getting "Type 'UIControl' has no member 'Event'" what do you think would be the reason? thanks
for: UIControl.Event.editingChanged for: UIControl.Event.editingChanged @IBInspectable public var maxLength: Int { get { guard let length = maxLengths[self] else { return Int.max } return length } set { maxLengths[self] = newValue addTarget( self, action: #selector(limitLength), for: UIControl.Event.editingChanged ) } }