adamwaite / Validator

Drop in user input validation for your iOS apps.
MIT License
1.42k stars 218 forks source link

Swift 5.1 compatibility: Rename validate to performValidation to prevent naming conflict #119

Closed reececomo closed 5 years ago

reececomo commented 5 years ago

Many SwiftUI/UIKit elements now provide a validate method, and this namespace conflict makes it confusing to use Validator and breaks a handful of selectors with ambiguity warnings: Ambiguous use of 'validate'.

adamwaite commented 5 years ago

I'm going to have a look at this some time in the next 3 days.

reececomo commented 5 years ago

Yep no stress. It caused a naming conflict when we tried to build our apps in the Xcode 11.1 beta (on Swift 5.1). Feel free to close the PR if you go with another naming scheme.

adamwaite commented 5 years ago

Thanks, copied your request :)