One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

ButtonSizing

struct · iOS 26.0+ · SDK 27.1

struct ButtonSizing

The sizing behavior of `Button`s and other button-like controls.

Members (3)

get · iOS 26.0+

fitted

TypeScript
static get fitted(): ButtonSizing
Swift declaration
static var fitted: ButtonSizing { get }

Sizes a button along its primary axis to fit its inner content, compressing if necessary.

get · iOS 26.0+

flexible

TypeScript
static get flexible(): ButtonSizing
Swift declaration
static var flexible: ButtonSizing { get }

Sizes a button flexibly along its primary axis, filling its available space by expanding or compressing beyond its ideal size.

get · iOS 26.0+

automatic

TypeScript
static get automatic(): ButtonSizing
Swift declaration
static var automatic: ButtonSizing { get }

The default button sizing behavior appropriate for the button's contextual placement and platform.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →