init(textAttachment:parentView:textLayoutManager:location:)
Creates a new text attachment view whose content starts at the location you provide.
Declaration
init(textAttachment: NSTextAttachment, parentView: UIView?, textLayoutManager: NSTextLayoutManager?, location: any NSTextLocation)Parameters
- textAttachment:
The Nstextattachment for this view.
- parentView:
The parent view of this attachment.
- textLayoutManager:
The Nstextlayoutmanager for this view.
- location:
The Nstextlocation that identifies the start of the text.