One Logo Pool Ball
UIKit · IOS API REFERENCE

UITextFormattingViewController.Component

class · iOS 18.0+ · SDK 27.1

class Component

Members (4)

init · iOS 18.0+

init

TypeScript
static init(componentKey: UITextFormattingViewController_ComponentKey, preferredSize: UITextFormattingViewController_ComponentSize): Promise<UITextFormattingViewController_Component>
Swift declaration
init(componentKey: UITextFormattingViewController.ComponentKey, preferredSize: UITextFormattingViewController.ComponentSize)
get · iOS 18.0+

componentKey

TypeScript
get componentKey(): Promise<UITextFormattingViewController_ComponentKey>
Swift declaration
var componentKey: UITextFormattingViewController.ComponentKey { get }
get · iOS 18.0+

preferredSize

TypeScript
get preferredSize(): Promise<UITextFormattingViewController_ComponentSize>
Swift declaration
var preferredSize: UITextFormattingViewController.ComponentSize { get }
static · iOS 18.0+

component

TypeScript
static component(componentKey: UITextFormattingViewController_ComponentKey, preferredSize: UITextFormattingViewController_ComponentSize): Promise<UITextFormattingViewController_Component>
Swift declaration
static func component(_ componentKey: UITextFormattingViewController.ComponentKey, _ preferredSize: UITextFormattingViewController.ComponentSize) -> UITextFormattingViewController.Component

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UITextFormattingViewController.Component.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →