fixed
TypeScriptstatic get fixed(): SpacerSizingSwift declarationstatic let fixed: SpacerSizingThe fixed spacer sizing behavior. The spacer will use a pre-defined size determined by the system and the context in which the spacer is used.
struct · iOS 26.0+ · SDK 27.1
struct SpacerSizingA type which defines how spacers should size themselves. Use this type in coordination with the ``ToolbarSpacer`` type to define if the spacer should be a flexible size, or a fixed size using system-defined sizing rules. For example, the following adds a fixed-size toolbar spacer between the share and more buttons in the toolbar: ContentView() .toolbar(id: "main-toolbar") { ToolbarItem(id: "tag") { TagButton() } ToolbarItem(id: "share") { ShareButton() } ToolbarSpacer(.fixed) ToolbarItem(id: "more") { MoreButton() } }
static get fixed(): SpacerSizingSwift declarationstatic let fixed: SpacerSizingThe fixed spacer sizing behavior. The spacer will use a pre-defined size determined by the system and the context in which the spacer is used.
static get flexible(): SpacerSizingSwift declarationstatic let flexible: SpacerSizingThe flexible spacer sizing behavior. The spacer will expand to accommodate as much space as it is given in the current context.
No declarations were skipped in this snapshot.