-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
I change this code and reemplace this
` @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()
}
--> setNeedsLayout() /// with this line work
---> // setNeedsDisplay() // remove this line
}
}`
Metadata
Metadata
Assignees
Labels
No labels