alusev / EGFormValidator

A simple form validation library written in Swift 4.0.
MIT License
14 stars 4 forks source link

Type 'UIControl' has no member 'Event' #5

Open topslave opened 5 years ago

topslave commented 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 ) } }

topslave commented 5 years ago

hi By the way, I am still using Swift 4.1 Thanks

alusev commented 5 years ago

What version of the plugin are you using? There's v2.0.0 that is only compatible with Swift 4.2