Function

CTFramesetterCreateWithAttributedString(_:)

Creates an immutable framesetter object from an attributed string.

Declaration

func CTFramesetterCreateWithAttributedString(_ string: CFAttributedString) -> 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 CTFramesetterCreateFrame(_:_:_:_:) call.

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