init
TypeScriptstatic initAttributes(attributes: _Foundation_AttributeContainer): Promise<UITextFormattingViewController_FormattingDescriptor>Swift declarationinit(attributes: AttributeContainer)struct · iOS 18.0+ · SDK 27.1
struct FormattingDescriptorstatic initAttributes(attributes: _Foundation_AttributeContainer): Promise<UITextFormattingViewController_FormattingDescriptor>Swift declarationinit(attributes: AttributeContainer)static initAttributes53673(attributes: NativeMap<_Foundation_NSAttributedString_Key, unknown>): Promise<UITextFormattingViewController_FormattingDescriptor>Swift declarationinit(attributes: [NSAttributedString.Key : Any])get highlights(): Promise<Array<UITextFormattingViewController_Highlight>>Swift declarationvar highlights: Set<UITextFormattingViewController.Highlight>setHighlights(value: Array<UITextFormattingViewController_Highlight>): Promise<void>Swift declarationvar highlights: Set<UITextFormattingViewController.Highlight>get lineHeight(): Promise<(number) | null>Swift declarationvar lineHeight: Double?setLineHeight(value?: (number) | null): Promise<void>Swift declarationvar lineHeight: Double?get textColors(): Promise<Array<UIColor>>Swift declarationvar textColors: [UIColor]setTextColors(value: Array<UIColor>): Promise<void>Swift declarationvar textColors: [UIColor]get textAlignments(): Promise<Array<UITextFormattingViewController_TextAlignment>>Swift declarationvar textAlignments: Set<UITextFormattingViewController.TextAlignment>setTextAlignments(value: Array<UITextFormattingViewController_TextAlignment>): Promise<void>Swift declarationvar textAlignments: Set<UITextFormattingViewController.TextAlignment>get underlinePresent(): Promise<boolean>Swift declarationvar underlinePresent: BoolsetUnderlinePresent(value: boolean): Promise<void>Swift declarationvar underlinePresent: Boolget formattingStyleKey(): Promise<(string) | null>Swift declarationvar formattingStyleKey: String?setFormattingStyleKey(value?: (string) | null): Promise<void>Swift declarationvar formattingStyleKey: String?get strikethroughPresent(): Promise<boolean>Swift declarationvar strikethroughPresent: BoolsetStrikethroughPresent(value: boolean): Promise<void>Swift declarationvar strikethroughPresent: Boolget fonts(): Promise<Array<UIFont>>Swift declarationvar fonts: [UIFont]setFonts(value: Array<UIFont>): Promise<void>Swift declarationvar fonts: [UIFont]static initStringRange(string: _Foundation_NSAttributedString, range: SDKHandle): Promise<UITextFormattingViewController_FormattingDescriptor>Swift declarationinit(string: NSAttributedString, range: NSRange)get textLists(): Promise<Array<UITextFormattingViewController_TextList>>Swift declarationvar textLists: Set<UITextFormattingViewController.TextList>setTextLists(value: Array<UITextFormattingViewController_TextList>): Promise<void>Swift declarationvar textLists: Set<UITextFormattingViewController.TextList>static init(): Promise<UITextFormattingViewController_FormattingDescriptor>Swift declarationinit()1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UITextFormattingViewController.FormattingDescriptor.init(string:)
This parameter hides a concrete Swift type.