- iOS 7.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Bounds(for: NSText Container?, proposed Line Fragment: CGRect, glyph Position: CGPoint, character Index: Int) -> CGRect
Returns the layout bounds of the text attachment to the layout manager.
Bounds: CGRect, text Container: NSText Container?, character Index: Int) -> UIImage?
Returns the image object rendered by the layout manager in the given image bounds rectangle inside the text container.