Protocol

NSTextAttachmentContainer

The NSTextAttachmentContainer protocol defines the interface to text attachment objects from NSLayoutManager.

Symbols

New Methods

func attachmentBounds(for: NSTextContainer?, proposedLineFragment: CGRect, glyphPosition: CGPoint, characterIndex: Int)
Required.

Returns the layout bounds of the text attachment to the layout manager.

func image(forBounds: CGRect, textContainer: NSTextContainer?, characterIndex: Int)
Required.

Returns the image object rendered by the layout manager in the given image bounds rectangle inside the text container.

Relationships

Inherits From