SubviewAttachingTextView icon indicating copy to clipboard operation
SubviewAttachingTextView copied to clipboard

UITextView behavior and subclass that allow embedding subviews as text attachments.

Results 6 SubviewAttachingTextView issues
Sort by recently updated
recently updated
newest added

I've put a SubviewAttachingTextView textView inside a tableView, and it contains several images and subviews, when I scroll the tableView, the images and subviews disappear, leaving blank spaces, I've tried...

public func layoutManager(_ layoutManager: NSLayoutManager, didCompleteLayoutFor textContainer: NSTextContainer?, atEnd layoutFinishedFlag: Bool) { if layoutFinishedFlag { self.layoutAttachedSubviews() } }

I have 2 attachments next to each other, which are separated by a new line character ("\n). But I can not find a way to add space between them. I...

Hello, I have a question. If I modify the text the original parameters will change in the attributed text. How can I save the content and load it back to...

in demo ` // Load lorem ipsum from a file and create a long attributed string out of it let loremIpsum = try! String(contentsOf: #fileLiteral(resourceName: "lorem-ipsum.txt")) let repeatedLorem = String(repeating:...

How could I track attachment positions? I want to disable people from deleting my image and video attachment that I am inserting, I could use func textView(_ textView: UITextView, shouldChangeTextIn...

question