ButtonSizing
The sizing behavior of Buttons and other button-like controls.
Declaration
type ButtonSizing = 'automatic' | 'fitted' | 'flexible';struct ButtonSizingPass a literal, or build one with SwiftUI.ButtonSizing from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.ButtonSizing.automaticThe default button sizing behavior appropriate for the button's contextual placement and platform.
'fitted'SwiftUI.ButtonSizing.fittedSizes a button along its primary axis to fit its inner content, compressing if necessary.
'flexible'SwiftUI.ButtonSizing.flexibleSizes a button flexibly along its primary axis, filling its available space by expanding or compressing beyond its ideal size.
Used by
See also
More in Appearance.
- BackgroundProminenceThe prominence of backgrounds underneath other views.
- BadgeProminenceThe visual prominence of a badge.
- ColorA representation of a color that adapts to a given context.
- ColorRenderingModeThe set of possible working color spaces for color-compositing operations.
- ColorResolvedA concrete color value.
- ColorResolvedHDRA concrete color value, including HDR headroom information.
- ColorRGBColorSpaceA profile that specifies how to interpret a color value for display.
- ColorSchemeThe possible color schemes, corresponding to the light and dark appearances.
- GlassA structure that defines the configuration of a physical glass material.
- GlassChainGlass with chained calls: SwiftUI.Glass.interactive(...).
- ImageScaleA scale to apply to vector images relative to text.
- ProminenceA type indicating the prominence of a view hierarchy.