Interactive previews iPhone
ControlSize
A control version that is the default size
Platform Compatibility
iOS 15.0+ iPadOS 15.0+ macOS 10.15+ watchOS 9.0+ tvOS 15.0+ visionOS 1.0+
Tags
SwiftUI Code
VStack {
Button("Tap Me", action: action)
.buttonStyle(.borderedProminent)
.controlSize(.mini)
Button("Tap Me", action: action)
.buttonStyle(.borderedProminent)
.controlSize(.small)
Button("Tap Me", action: action)
.buttonStyle(.borderedProminent)
.controlSize(.regular)
Button("Tap Me", action: action)
.buttonStyle(.borderedProminent)
.controlSize(.large)
Button("Tap Me", action: action)
.buttonStyle(.borderedProminent)
// only on visionOS bigger than large
.controlSize(.extraLarge)
}
Found an issue or have a suggestion?
Created: June 12, 2025Updated: December 27, 2025
More View Components
View allToolbar Vertical Edge
This value reflects the system’s preferred edge for the vertical bar in the current context, regardless of whether a vertical bar is currently visible. Use it to position custom bars or other UI relative to the system’s bar placement.
Music Picker
Presents a music picker to select items from the Apple Music catalog and the user’s music library.
Explore Other Components
Browse allList Background Prominence
The prominence of the background underneath views associated with this environment.
Navigation Subtitle
Configures the view’s subtitle for purposes of navigation, using a localized string
Group Subscription Store View
Creates a view that loads all subscriptions in a subscription group from the App Store, and merchandises them with automatic marketing content.