The dimension (width or height) of the bounding box containing the text expressed as a percentage.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- Core Media
Declaration
let kCMTextMarkupAttribute_WritingDirectionSizePercentage: CFString
Discussion
Value must be a non-negative CFNumber
. This is a number expressing the width of the bounding box for text layout as a percentage of the video frame's dimension in the writing direction. For a horizontal writing direction, it is the width. For a vertical writing direction, it is the height.
If used, this attribute must be applied to the entire attributed string.