Apple Watch SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive Apple Watch previews, Swift code, and Apple documentation.
30elements
Button
Button Sizing
The preferred sizing behavior of buttons in the view hierarchy.
Explore Button Sizing on Apple Watch, with SwiftUI code and Apple API documentation.
SwiftUI code
HStack {
Button("Tap Me", action: action)
.buttonStyle(.borderedProminent)
.buttonSizing(.fitted)
Button("Tap Me", action: action)
.buttonStyle(.borderedProminent)
.buttonSizing(.flexible)
}Compatibility
iOS 26.0+ iPadOS 26.0+ macOS 26.0+ watchOS 26.0+ tvOS 26.0+ visionOS 26.0+
Tags
Found an issue or have a suggestion?
All variants
Every available Apple Watch screenshot for Button Sizing.