Protocol

NSTextAttachmentContainer

A set of methods that defines the interface to text attachment objects from NSLayoutManager.

Declaration

protocol NSTextAttachmentContainer

Topics

New Methods

func image(forBounds: CGRect, textContainer: NSTextContainer?, characterIndex: Int) -> UIImage?

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

Required.

Relationships

Inherits From

Conforming Types

See Also

Attachments

class NSTextAttachment

The values for the attachment attributes of attributed strings and related objects.