One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Text.LayoutKey

struct · iOS 17.0+ · SDK 27.1

struct LayoutKey

A preference key that provides the `Text.Layout` values for all text views in the queried subtree.

Members (1)

get · iOS 17.0+

defaultValue

TypeScript
static get defaultValue(): Array<Text_LayoutKey_AnchoredLayout>
Swift declaration
static var defaultValue: Text.LayoutKey.Value { get }

The default value of the preference. Views that have no explicit value for the key produce this default value. Combining child views may remove an implicit value produced by using the default. This means that `reduce(value: &x, nextValue: {defaultValue})` shouldn't change the meaning of `x`.

Skipped declarations

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

Text.LayoutKey.reduce(value:nextValue:)

callback cannot propagate synchronous failure

All SwiftUICore types →