Validator icon indicating copy to clipboard operation
Validator copied to clipboard

cannot build with xcode 11 (need xcode 11 swift 5.1 suppport)

Open PikaRules opened this issue 4 years ago • 5 comments

on UITextView+Validator

the compiler shows the following error on line 11:

'textDidChangeNotification' has been renamed to 'NSNotification.Name.UITextViewTextDidChange'

therefore you cannot build.

PikaRules avatar Oct 04 '19 00:10 PikaRules

This was already renamed in the latest releases. Please, follow the installation guide. Make sure you are using latest release available.

@adamwaite This could be closed as well as previous one.

piv199 avatar Oct 25 '19 14:10 piv199

@piv199 I'm not seeing the change in the repo. https://github.com/adamwaite/Validator/blob/master/Validator/Sources/UIKit+Validator/UITextView+Validator.swift . It is still using 'textDidChangeNotification'

shenck avatar Oct 30 '19 18:10 shenck

@shenck Can't get the problem. I have Xcode11 and swift 5.1 and everything comiles and works.

Documentation says it's still UITextView.textDidChangeNotification https://developer.apple.com/documentation/uikit/uitextview/1618609-textdidchangenotification

piv199 avatar Oct 30 '19 18:10 piv199

@shenck Actually, I have set swift version to 4.0 and your problem has occurred. Please set Swift version to at least 4.2 for the latest release.

piv199 avatar Oct 30 '19 18:10 piv199

@piv199 Thanks!! Working now

shenck avatar Oct 30 '19 18:10 shenck