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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software