MoZhouqi / KMPlaceholderTextView

A UITextView subclass that adds support for multiline placeholder written in Swift.
MIT License
805 stars 141 forks source link

Swift 2.2 warnings #17

Closed paulz closed 8 years ago

paulz commented 8 years ago

Thank you for the awesome Pod!

We just migrated to swift 2.2 and we liked how KMPlaceholderTextView had no warnings before. Now we are getting a few, see below. Would it be possible to have a release without warnings? Thank you!

▸ Compiling KMPlaceholderTextView.swift

⚠️ /Pods/KMPlaceholderTextView/KMPlaceholderTextView/KMPlaceholderTextView.swift:90:23: use of string literal for Objective-C selectors is deprecated; use '#selector' instead

        selector: "textDidChange",
                  ^~~~~~~~~~~~~~~

▸ Compiling KMPlaceholderTextView.swift

⚠️ /Pods/KMPlaceholderTextView/KMPlaceholderTextView/KMPlaceholderTextView.swift:90:23: use of string literal for Objective-C selectors is deprecated; use '#selector' instead

        selector: "textDidChange",
                  ^~~~~~~~~~~~~~~
MoZhouqi commented 8 years ago

Fixed in release 1.2.0. Thanks for your feedback.