GrowingTextView icon indicating copy to clipboard operation
GrowingTextView copied to clipboard

not work GrowingTextViewDelegate

Open dan085 opened this issue 5 years ago • 0 comments

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
    }
}`

dan085 avatar Oct 26 '18 02:10 dan085