Creates an immutable framesetter object from an attributed string.
SDKs
- iOS 3.2+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Text
Declaration
func CTFramesetterCreateWithAttributedString(_ attrString: CFAttributed String) -> CTFramesetter
Parameters
string
The attributed string with which to construct the framesetter object.
Return Value
A reference to a CTFramesetter object if the call was successful; otherwise, NULL
.
Discussion
The resultant framesetter object can be used to create and fill text frames with the CTFramesetter
call.