Commit c27838a2 by Daniel Dahan

updated TextView internals to fix optional access error within text

parent ebadce93
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'MK' s.name = 'MK'
s.version = '1.27.6' s.version = '1.27.7'
s.license = 'AGPL-3.0' s.license = 'AGPL-3.0'
s.summary = 'Beautiful Material Design in Swift.' s.summary = 'Beautiful Material Design in Swift.'
s.homepage = 'http://materialkit.io' s.homepage = 'http://materialkit.io'
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.27.6</string> <string>1.27.7</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -422,7 +422,7 @@ public class TextView: UITextView { ...@@ -422,7 +422,7 @@ public class TextView: UITextView {
/// Notification handler for when text changed. /// Notification handler for when text changed.
internal func handleTextViewTextDidChange() { internal func handleTextViewTextDidChange() {
if let p = placeholderLabel { if let p = placeholderLabel {
p.hidden = !text.isEmpty p.hidden = !(true == text?.isEmpty)
} }
if 0 < text?.utf16.count { if 0 < text?.utf16.count {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment