Returns the image object rendered by the layout manager in the given image bounds rectangle inside the text container.
- iOS 7.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The rectangle in which the image is laid out.
The text container in which the image is laid out.
The character location inside the text storage for the attachment character.
The image rendered in the bounds rectangle.
The method should return an image appropriate for the target rendering context derived by arguments passed into this method. The
NSText implementation returns the text attachment’s
image when non-
nil. If the image is
nil, it returns an image based on the text attachment’s