How to replace a text attachment with a custom drawing with NSLayoutManager?
问题 My ultimate goal is to give the user the ability to split a text inside an NSTextView or UITextView into several sections , where two subsequent sections are visually separated by a custom view separator (possibly, but not necessarily a horizontal rule – I want to be able to adjust the visual appearance of the separator without a hassle). I need a solution that works on both platforms: macOS and iOS . (My related question focused on a solution for macOS and there is one that makes use of