You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using your library for years without problems. Recently I had to resume a project which I haven't touched in several months, so I'm not sure if this is now an iOS 13.3 issue or what, but the textview would just not work.
Until I went into the soucecode of the GrowingTextView and added setNeedsLayout here:
// Limit the length of text
@objc func textDidChange(notification: Notification) {
if let sender = notification.object as? GrowingTextView, sender == self {
if maxLength > 0 && text.count > maxLength {
let endIndex = text.index(text.startIndex, offsetBy: maxLength)
text = String(text[..<endIndex])
undoManager?.removeAllActions()
}
setNeedsDisplay()
setNeedsLayout() <-- HERE
}
}
Then everything works as expected. Is this normal? If not, why could it be happening?
The text was updated successfully, but these errors were encountered:
I've been using your library for years without problems. Recently I had to resume a project which I haven't touched in several months, so I'm not sure if this is now an iOS 13.3 issue or what, but the textview would just not work.
Until I went into the soucecode of the GrowingTextView and added setNeedsLayout here:
Then everything works as expected. Is this normal? If not, why could it be happening?
The text was updated successfully, but these errors were encountered: