Returns the range of characters that actually fit in the frame.
SDKs
- iOS 3.2+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Text
Declaration
Parameters
frame
The frame whose visible character range is returned.
Return Value
A CFRange
structure containing the backing store range of characters that fit into the frame, or if the function call is not successful or no characters fit in the frame, an empty range.
Discussion
This function can be used to cascade frames, because it returns the range of characters that can be seen in the frame. The next frame would start where this frame ends.