Skip to main content

Module views

Module views 

Source
Expand description

Building SwiftUI views from Rust, with no Swift source anywhere.

Every view here is made by resolving a mangled symbol and calling it through the primitives in crate::abi. Results are wrapped in AnyView, which is a single class reference, so one ViewHandle can stand for any view regardless of the concrete type SwiftUI built.

This module holds what the rest share — the handle, the helpers that apply a modifier, and the dump used to compare a value against Swift’s — and the bindings themselves are grouped by what they build:

  • primitives, typography, shapes, stacks, collections — views
  • layout, effects, materials, compositing, hover — appearance
  • controls, interaction, binding, closures — behaviour
  • navigation, presentation, toolbar, conditional, timeline
  • accessibility, namespace, generics, interop
  • generated, enums, styles, strings, plain, sets, optionsets, concrete — the long tail, grouped by argument shape

The grouping is by argument shape rather than by feature in the last group on purpose: what makes a binding hard is almost never what the modifier does, it is whether its arguments travel in registers or by address.

Re-exports§

pub use super::Rect;

Structs§

AppleIDRequest
The ASAuthorizationAppleIDRequest the onRequest callback is handed.
BoundState
Rust-side state a SwiftUI control can both read and write.
ButtonConfiguration
What a button style is told about the button it is drawing.
CustomAnimationCurve
A registered animation, as the one word SwiftUI stores.
CustomButtonStyle
A registered style, as the one word SwiftUI stores.
CustomContainerKey
A registered container-value key.
CustomEnvKey
A registered environment key: the conformance, the key path, and the default.
CustomLabelStyle
As CustomButtonStyle, for labels.
CustomLayout
A layout algorithm, ready to be given children.
CustomModifier
A registered modifier, as the one word SwiftUI stores.
CustomShape
A registered shape, as the one word SwiftUI stores.
CustomTransition
A registered transition, as the one word SwiftUI stores.
DragOperations
Which drag operations a view permits.
DragValue
A DragGesture.Value, read out of the struct SwiftUI hands the handler.
EdgeInsets
SwiftUI.EdgeInsets — four insets, one per edge.
EnvironmentValues
A borrowed SwiftUI.EnvironmentValues, live for the body call that got it.
FnLayout
A LayoutAlgorithm made of two closures.
FocusKey
A registered focused-value key: a synthesised FocusedValueKey conformance and the WritableKeyPath<FocusedValues, T?> that reaches it.
Font
A reusable SwiftUI.Font.
GestureValue
A built Gesture — its bytes, its type, and the type its handlers see.
Image
An Image value, not yet erased to a view.
ItemProvider
An NSItemProvider SwiftUI handed to a callback, or one built to hand back.
KeyPress
Which key was pressed, and with what held down.
LabelConfiguration
What a label style is told.
MagnifyValue
A MagnifyGesture.Value.
NSViewRep
A registered representable, as the one word SwiftUI stores.
Namespace
A @Namespace, shared between the views that should match.
PathBuilder
A Path under construction.
Proposal
What the parent is offering, each dimension possibly unspecified.
Rect
The rectangle a layout is given to fill.
RotateValue
A RotateGesture.Value.
ScrollGeometry
What a scroll view’s geometry looks like when it changes.
ScrollProxy
The ScrollViewProxy a scroll_view_reader’s closure is handed.
Shape
A shape value, not yet erased to a view.
ShapePath
The path a shape is building.
Subviews
The children, as SwiftUI hands them over.
TransactionRef
A SwiftUI.Transaction being handed to a .transaction callback.
ViewDimensions
How big the view being aligned is.
ViewHandle
A SwiftUI view value, kept concrete.

Enums§

AccessibilityChildBehavior
SwiftUI.AccessibilityChildBehavior.
AccessibilityTrait
A member of SwiftUI.AccessibilityTraits.
ActionCategory
A member of SwiftUI.AccessibilityActionCategory.
ActionKind
A member of SwiftUI.AccessibilityActionKind.
Alignment
SwiftUI.Alignment, a frozen pair of alignment guides.
AlternatingRowBackgroundBehavior
SwiftUI.AlternatingRowBackgroundBehavior.
AnimationKind
SwiftUI.Animation’s built-in curves, as the static vars they are.
AppleButtonLabel
Which words SignInWithAppleButton draws.
AppleButtonStyle
How SignInWithAppleButton is painted.
Axis
A scroll or layout axis.
AxisSet
SwiftUI.Axis.Set, an option set.
BadgeProminence
SwiftUI.BadgeProminence.
ButtonBorderShape
SwiftUI.ButtonBorderShape.
ButtonRepeatBehavior
SwiftUI.ButtonRepeatBehavior.
ButtonRole
SwiftUI.ButtonRole — what a button is, not how it looks.
ButtonSizing
SwiftUI.ButtonSizing.
ButtonStyle
Which primitive button style to apply.
CharacterSetKind
A Foundation CharacterSet, by the static that names it.
ColorScheme
SwiftUI.ColorScheme, in declaration order.
ContainerBackgroundPlacement
Where a container background sits. Where a .containerBackground is drawn.
ContentMarginPlacement
SwiftUI.ContentMarginPlacement.
ContentMode
SwiftUI.ContentMode — whether content fits inside its frame or fills it.
ContentTransition
How a view’s content changes when its value does.
ContentType
A content type, as UTType’s own static properties name them.
ControlGroupStyle
The concrete types conforming to SwiftUI.ControlGroupStyle.
ControlSize
SwiftUI.ControlSize, in declaration order.
CoordinateSpace
Where a hover’s location is measured.
CustomContentImportance
How prominent a piece of custom accessibility content is.
DatePickerComponent
A member of SwiftUI.DatePickerComponents.
DatePickerStyle
The concrete types conforming to SwiftUI.DatePickerStyle.
DefaultFocusPriority
How eagerly SwiftUI honours a default focus request.
Design
SwiftUI.Font.Design, in declaration order.
DialogSeverity
SwiftUI.DialogSeverity.
DirectTouchOption
A member of SwiftUI.AccessibilityDirectTouchOptions.
DisclosureGroupStyle
The concrete types conforming to SwiftUI.DisclosureGroupStyle.
DragDropPreviewsFormation
SwiftUI.DragDropPreviewsFormation.
DropOperation
What a drop does with what it is given.
DynamicRange
How much dynamic range an image in this view may use.
DynamicTypeSize
SwiftUI.DynamicTypeSize, in declaration order.
Edge
One edge of a rectangle.
EdgeSet
SwiftUI.Edge.Set, an option set.
EdgeSetMember
A member of SwiftUI.Edge.Set.
EventModifier
A member of SwiftUI.EventModifiers.
FileDialogBrowserOptions
SwiftUI.FileDialogBrowserOptions.
FileOutcome
The outcome of a file dialog, as much of it as Rust can read.
FontWidth
A member of SwiftUI.Font.Width.
FormStyle
The concrete types conforming to SwiftUI.FormStyle.
GaugeStyle
The concrete types conforming to SwiftUI.GaugeStyle.
GeometryProperties
A member of SwiftUI.MatchedGeometryProperties.
GestureMask
SwiftUI.GestureMask — which gestures still get a look in.
Glass
SwiftUI.Glass — which Liquid Glass variant an effect uses.
GlassEffectTransition
SwiftUI.GlassEffectTransition.
GradientColorSpace
SwiftUI.Gradient.ColorSpace — which space a gradient interpolates in.
GridTrack
One track of a LazyVGrid’s columns or a LazyHGrid’s rows.
GroupBoxStyle
The concrete types conforming to SwiftUI.GroupBoxStyle.
HandGestureShortcut
SwiftUI.HandGestureShortcut.
HashableKind
A Hashable type, named rather than carried.
HashableValue
A value to pass where SwiftUI asks for some Hashable.
HeadingLevel
SwiftUI.AccessibilityHeadingLevel, a frozen enum that fits in a register.
Hierarchical
Which of the five hierarchical levels a style names.
HorizontalAlignment
SwiftUI.HorizontalAlignment, a frozen word-sized value.
HorizontalEdge
SwiftUI.HorizontalEdge.
HoverPhase
Which phase of a continuous hover SwiftUI is reporting.
ImageScale
SwiftUI.Image.Scale.
InsettableShape
The concrete types conforming to SwiftUI.InsettableShape.
InterfaceOrientation
SwiftUI.InterfaceOrientation.
Interpolation
Image.Interpolation — how a scaled image is resampled.
Key
A named key, as SwiftUI.KeyEquivalent’s statics spell it.
KeyPressPhases
Which phases of a key press to observe.
KeyPressResult
Whether a key press was consumed.
KeyboardShortcut
SwiftUI.KeyboardShortcut.
LabelStyle
The concrete types conforming to SwiftUI.LabelStyle.
LabeledContentStyle
The concrete types conforming to SwiftUI.LabeledContentStyle.
LabeledPairRole
SwiftUI.AccessibilityLabeledPairRole.
LayoutDirection
SwiftUI.LayoutDirection, in declaration order.
LayoutDirectionBehavior
SwiftUI.LayoutDirectionBehavior.
LineHeightKind
A line height, as AttributedString.LineHeight’s statics name it.
LinePattern
A member of SwiftUI.Text.LineStyle.Pattern.
ListItemTint
Which ListItemTint a row uses.
ListStyle
The concrete types conforming to SwiftUI.ListStyle.
MaterialActiveAppearance
SwiftUI.MaterialActiveAppearance.
MaterialKind
The blur materials SwiftUI exposes as ShapeStyles.
MenuActionDismissBehavior
SwiftUI.MenuActionDismissBehavior.
MenuButtonStyle
The concrete types conforming to SwiftUI.MenuButtonStyle.
MenuOrder
SwiftUI.MenuOrder.
MenuStyle
The concrete types conforming to SwiftUI.MenuStyle.
Orientation
A member of SwiftUI.InterfaceOrientation — table’s row type.
PaletteSelectionEffect
SwiftUI.PaletteSelectionEffect.
PickerStyle
The concrete types conforming to SwiftUI.PickerStyle.
PointerStyle
A member of SwiftUI.PointerStyle.
PresentationAdaptation
SwiftUI.PresentationAdaptation.
PresentationBackgroundInteraction
SwiftUI.PresentationBackgroundInteraction.
PresentationContentInteraction
SwiftUI.PresentationContentInteraction.
PresentationDetent
Which detent a sheet may rest at.
PreviewLayout
SwiftUI.PreviewLayout’s cases without payloads.
ProgressStyle
Which ProgressViewStyle to apply.
Prominence
SwiftUI.Prominence, in declaration order.
RedactionReasons
SwiftUI.RedactionReasons.
ResizingMode
Image.ResizingMode.
SafeAreaRegions
SwiftUI.SafeAreaRegions.
ScenePadding
SwiftUI.ScenePadding.
ScrollAnchorRole
SwiftUI.ScrollAnchorRole.
ScrollBounceBehavior
SwiftUI.ScrollBounceBehavior.
ScrollDismissesKeyboardMode
SwiftUI.ScrollDismissesKeyboardMode.
ScrollEdgeEffectStyle
SwiftUI.ScrollEdgeEffectStyle.
ScrollIndicatorVisibility
SwiftUI.ScrollIndicatorVisibility.
ScrollTargetBehavior
The concrete types conforming to SwiftUI.ScrollTargetBehavior.
ScrollTransitionConfiguration
How a scroll transition interpolates.
SearchFieldPlacement
Where a search field is placed in the surrounding chrome.
SearchPresentationToolbarBehavior
SwiftUI.SearchPresentationToolbarBehavior.
SearchSuggestionsPlacementSet
SwiftUI.SearchSuggestionsPlacement.Set, an option set.
SearchToolbarBehavior
SwiftUI.SearchToolbarBehavior.
SensoryFeedback
A haptic or audible cue.
ShapeStyle
The concrete types conforming to SwiftUI.ShapeStyle.
SplitViewStyle
Which NavigationSplitViewStyle to apply.
SpringLoadingBehavior
SwiftUI.SpringLoadingBehavior.
SubmitLabel
SwiftUI.SubmitLabel.
SubmitTrigger
A member of SwiftUI.SubmitTriggers.
SymbolColorRendering
How a multicolour symbol’s colours are rendered.
SymbolEffect
One of the indefinite symbol effects — the ones .symbolEffect(_:) takes with no value:, which run until the view goes away.
SymbolRenderingMode
A member of SwiftUI.SymbolRenderingMode.
SymbolVariableValue
How a symbol shows a variable value.
SymbolVariants
SwiftUI.SymbolVariants.
SystemColor
One of SwiftUI’s own named colours.
TabBarMinimizeBehavior
SwiftUI.TabBarMinimizeBehavior.
TabSearchActivation
Which of TabSearchActivation’s cases a tab view’s search uses.
TabStyle
Which TabViewStyle to apply.
TableStyle
The concrete types conforming to SwiftUI.TableStyle.
TaskPriority
How urgently a task should run. .medium is deliberately absent. The stdlib marks it @_alwaysEmitIntoClient, so unlike its neighbours it has no symbol to call — dlsym returns null for $sScP6mediumScPvgZ even with libswift_Concurrency loaded, and naming it could only panic.
TemplateRenderingMode
Image.TemplateRenderingMode.
TextAlign
SwiftUI.TextAlignment, in declaration order.
TextCase
SwiftUI.Text.Case.
TextContentKind
A member of AppKit’s NSTextContentType.
TextContentType
A member of SwiftUI.AccessibilityTextContentType.
TextEditorStyle
The concrete types conforming to SwiftUI.TextEditorStyle.
TextFieldStyle
The concrete types conforming to SwiftUI.TextFieldStyle.
TextInputFormattingControlPlacementSet
SwiftUI.TextInputFormattingControlPlacement.Set, an option set.
TextPart
One piece of an interpolated Text.
TextScale
SwiftUI.Text.Scale.
TextSelectability
The concrete types conforming to SwiftUI.TextSelectability.
TextSelectionAffinity
SwiftUI.TextSelectionAffinity, in declaration order.
TextStyle
SwiftUI.Font.TextStyle presets, reached through their static getters.
ToggleStyle
The concrete types conforming to SwiftUI.ToggleStyle.
ToolbarItemPlacement
SwiftUI.ToolbarItemPlacement — where a toolbar item goes.
ToolbarPlacement
A member of SwiftUI.ToolbarPlacement.
ToolbarRole
SwiftUI.ToolbarRole.
ToolbarTitleDisplayMode
SwiftUI.ToolbarTitleDisplayMode.
TouchBarItemPresence
SwiftUI.TouchBarItemPresence, in declaration order.
TransitionPhase
Where in a transition body is being asked to draw.
TruncationMode
SwiftUI.Text.TruncationMode.
TypesettingLanguage
SwiftUI.TypesettingLanguage.
VerticalAlignment
SwiftUI.VerticalAlignment, a frozen word-sized value.
VerticalEdge
SwiftUI.VerticalEdge.
VerticalEdgeSet
SwiftUI.VerticalEdge.Set, an option set.
Visibility
SwiftUI.Visibility, in declaration order.
Weight
SwiftUI.Font.Weight. The values are Doubles behind the scenes; these are the named steps SwiftUI exposes.
WindowInteractionBehavior
SwiftUI.WindowInteractionBehavior.
WindowStyle
The concrete types conforming to SwiftUI.WindowStyle.
WindowToolbarFullScreenVisibility
SwiftUI.WindowToolbarFullScreenVisibility.
WindowToolbarStyle
The concrete types conforming to SwiftUI.WindowToolbarStyle.
WritingDirectionStrategy
A member of SwiftUI.Text.WritingDirectionStrategy.
WritingToolsBehavior
SwiftUI.WritingToolsBehavior.

Traits§

Animating
A timing curve written in Rust.
ButtonStyling
How a button draws.
ForEachRange
ForEach(0..<count) { index in … }.
GestureData
What a gesture hands its handlers, as a Rust type.
Interpolatable
Anything that can be interpolated into a text_interpolated.
IntoHashable
Anything that can stand where SwiftUI wants some Hashable.
IntoKeyValue
What a key’s default may be written as.
KeyValue
A Swift type a synthesised key can hold.
LabelStyling
How a label draws.
LayoutAlgorithm
A layout algorithm.
Modifying
How a view modifier draws.
Representing
How an AppKit view is made and kept up to date.
Shaping
How a shape draws itself into a rect.
Transitioning
How a transition draws in each phase.

Functions§

accent_color
Apply .accentColor(_:).
accessibility_action
Apply .accessibilityAction(_:_:).
accessibility_actions
Apply .accessibilityActions(category:_:).
accessibility_activation_point
Apply .accessibilityActivationPoint(_:).
accessibility_add_traits
Apply .accessibilityAddTraits(_:).
accessibility_adjustable_action
Apply .accessibilityAdjustableAction(_:).
accessibility_chart_descriptor
Apply .accessibilityChartDescriptor(_:) with a synthesized representable.
accessibility_children
Apply .accessibilityChildren(children:).
accessibility_custom_content
Apply .accessibilityCustomContent(_:_:importance:).
accessibility_default_focus
Apply .accessibilityDefaultFocus(_:_:).
accessibility_deprecated_identifier
Apply .accessibility(identifier:), the pre-accessibilityIdentifier name.
accessibility_direct_touch
Apply .accessibilityDirectTouch(_:options:).
accessibility_drag_point
Apply .accessibilityDragPoint(_:description:isEnabled:).
accessibility_drop_point
Apply .accessibilityDropPoint(_:description:isEnabled:).
accessibility_element
Apply .accessibilityElement(_:).
accessibility_focused
Apply .accessibilityFocused(_:).
accessibility_heading
Apply .accessibilityHeading(_:).
accessibility_hidden
Apply .accessibilityHidden(_:).
accessibility_hint
Apply .accessibilityHint(_:).
accessibility_identifier
Apply .accessibilityIdentifier(_:).
accessibility_ignores_invert_colors
Apply .accessibilityIgnoresInvertColors(_:).
accessibility_input_labels
accessibility_label
Apply .accessibilityLabel(_:).
accessibility_labeled_pair
Apply .accessibilityLabeledPair(role:id:in:).
accessibility_linked_group
Apply .accessibilityLinkedGroup(id:in:).
accessibility_remove_traits
Apply .accessibilityRemoveTraits(_:).
accessibility_representation
Apply .accessibilityRepresentation(representation:).
accessibility_responds_to_user_interaction
Apply .accessibilityRespondsToUserInteraction(_:).
accessibility_rotor
Apply .accessibilityRotor(_:textRanges:).
accessibility_rotor_entry
Apply .accessibilityRotorEntry(id:in:).
accessibility_scroll_action
Apply .accessibilityScrollAction(_:).
accessibility_scroll_status
Apply .accessibilityScrollStatus(_:isEnabled:).
accessibility_selection_identifier
.accessibility(selectionIdentifier:) — which item of a selectable group this is, for assistive technologies.
accessibility_shows_large_content_viewer
Apply .accessibilityShowsLargeContentViewer(_:).
accessibility_sort_priority
Apply .accessibilitySortPriority(_:).
accessibility_text_content_type
Apply .accessibilityTextContentType(_:).
accessibility_value
Apply .accessibilityValue(_:isEnabled:).
accessibility_zoom_action
Apply .accessibilityZoomAction(_:).
alert
alert with a fixed flag. It cannot be dismissed: SwiftUI treats a Binding.constant as read-only, so the presentation has no way to write false back. Use alert_bound for one the user can close.
alert_bound
alert bound to Rust state, so dismissing it writes false back.
alert_message
alert(_:isPresented:actions:message:) with a fixed flag, which cannot be dismissed — see alert.
alert_message_bound
alert(_:isPresented:actions:message:) bound to Rust state.
alignment_guide
Apply .alignmentGuide(_:computeValue:).
allowed_dynamic_range
Apply .allowedDynamicRange(_:).
allowed_dynamic_range_high
.allowedDynamicRange(.high) on any View — inlines to environment(\.allowedDynamicRange, range).
allows_hit_testing
Apply .allowsHitTesting(_:).
allows_tightening
Apply .allowsTightening(_:).
allows_window_activation_events
Apply .allowsWindowActivationEvents(_:).
alternating_row_backgrounds
Apply .alternatingRowBackgrounds(_:).
anchor_preference
Apply .anchorPreference(key:value:transform:) with a synthesized key.
angular_gradient_style
AngularGradient(gradient:center:angle:) — a sweep around a point.
animation
Apply .animation(.default, value:).
animation_fn
Register a timing curve. A closure from time to progress is one.
animation_kind
.animation(_:value:) with the curve named.
apply_modifier⚠
Apply a ViewModifier value to a view.
aspect_ratio
Apply .aspectRatio(_:contentMode:). fit is case 0, fill is case 1.
aspect_ratio_content_mode
.aspectRatio(_:contentMode:) with the mode named rather than spelled as a bool.
aspect_ratio_mode
Apply .aspectRatio(contentMode:) — the spelling with no ratio.
assistive_access_navigation_icon
Apply .assistiveAccessNavigationIcon(_:).
async_image
AsyncImage(url:scale:) — the Content == Image form.
attributed_text_formatting_definition
Apply .attributedTextFormattingDefinition(_:) with AttributeScopes.SwiftUIAttributes.
background
Apply .background(_:) with a Color.
background_any_gradient
Apply .background(_:) with an AnyGradient — what .indigo.gradient is.
background_content
Apply .background(alignment:content:).
background_extension_effect
Apply .backgroundExtensionEffect(_:).
background_in_circle
Apply .background(in:fillStyle:) — the background style, clipped to a shape.
background_linear_gradient
Apply .background(LinearGradient(colors:startPoint:endPoint:)).
background_material
Apply .background(_: Material) — the blur materials.
background_preference_value
Apply .backgroundPreferenceValue(_:alignment:_:) with fixed content.
background_radial_gradient
Apply .background(RadialGradient(colors:center:startRadius:endRadius:)).
background_shape_style
Apply .backgroundStyle(_:).
background_style_color
.backgroundStyle(_:) with a Color.
background_style_hierarchical
.backgroundStyle(_:) with one of the hierarchical levels.
background_style_in_insettable⚠
Apply .background(_:in:fillStyle:) where the shape is InsettableShape.
background_style_in_shape⚠
Apply .background(_:in:fillStyle:) — a style drawn behind, in a shape.
background_style_of⚠
Apply .backgroundStyle(_:) with any ShapeStyle.
background_style_value
.backgroundStyle(_:) with an already-resolved Color word.
badge
Apply .badge(_:).
badge_prominence
baseline_offset
Apply .baselineOffset(_:).
binding_write⚠
Write through a Binding<Bool>, exactly as a control does when the user interacts with it. Used to prove the write-back path end to end. Write through a Binding<T> the way a control does — SwiftUI’s own wrappedValue setter, reached through its dispatch thunk.
binding_write_bool
blend_mode
Apply .blendMode(_:). The cases follow SwiftUI.BlendMode’s declaration order.
blur
Apply .blur(radius:).
bold
Apply .bold().
bold_text
Create a bold Text at size points (size <= 0 keeps the default size).
bool_binding
border
Apply .border(_:width:). Apply .border(_:width:) with colour components.
border_value
Apply .border(_:width:) with a Color that is already built.
brightness
Apply .brightness(_:).
button
Create a Button with a text label and an action.
button_border_shape
button_labelled
Button(action:label:) — a button whose label is a view rather than a string.
button_raw
Create a Button with raw C callback.
button_repeat_behavior
button_role
Button(_:role:action:).
button_sizing
button_style
Apply .buttonStyle(_:) to a subtree.
button_style_fn
Register a button style. A closure taking a ButtonConfiguration is one.
button_style_glass_clear
Apply .buttonStyle(.glass(.clear)).
canvas
Canvas { context, size in … } with an empty renderer.
capsule
Capsule() — RoundedCornerStyle.circular is case 0.
circle
Circle()
clip_capsule
Apply .clipShape(Capsule()).
clip_capsule_styled
.clipShape(Capsule(style:)).
clip_circle
Apply .clipShape(Circle()).
clip_ellipse
Apply .clipShape(Ellipse()).
clip_rounded_rect
Apply .clipShape(RoundedRectangle(cornerRadius:)).
clip_rounded_rect_styled
Apply .clipShape(RoundedRectangle(cornerRadius:style:)).
clipped
Apply .clipped().
color
Create a Color view.
color_exposure_adjust
Color.exposureAdjust(_:) — brighten or darken by stops.
color_gradient
Color.gradient — the colour as a gentle vertical gradient.
color_headroom
Color.headroom(_:) — the colour’s allowed brightness past white.
color_invert
Apply .colorInvert(_:).
color_meta_for_style
Color’s metadata and ShapeStyle witness, for a call taking a style.
color_mix
Color.mix(with:by:) — blend two colours, perceptually.
color_mix_in
Color.mix(with:by:in:) — the same blend in whichever space is named.
color_multiply
Apply .colorMultiply(_:).
color_opacity
Color.opacity(_:) — a Color with its alpha scaled.
color_picker
A ColorPicker showing a fixed colour, which the user cannot change. See color_picker_bound.
color_picker_bound
A ColorPicker bound to Rust state.
color_scheme
Apply .colorScheme(_:).
color_shadow_style
Color.shadow(_:) — the generic ShapeStyle.shadow, with Self == Color.
color_shapestyle_wt_for_style
See color_meta_for_style.
color_value_of
The Color value behind a set of components.
color_view
Create a view of a Color value that is already built.
compositing_group
Apply .compositingGroup().
conditional
The if/else a ViewBuilder produces.
confirmation_dialog
confirmation_dialog with a fixed flag. It cannot be dismissed: SwiftUI treats a Binding.constant as read-only, so the presentation has no way to write false back. Use confirmation_dialog_bound for one the user can close.
confirmation_dialog_bound
confirmation_dialog bound to Rust state, so dismissing it writes false back.
confirmation_message
confirmationDialog(…actions:message:) with a fixed flag, which cannot be dismissed — see confirmation_dialog.
confirmation_message_bound
confirmationDialog(…actions:message:) bound to Rust state.
container_background
Apply .containerBackground(for:alignment:content:).
container_corner_offset
Apply .containerCornerOffset(_:).
container_key
Define a container-value key, or return the one already defined for name.
container_relative_frame
Apply .containerRelativeFrame(_:alignment:).
container_relative_frame_thirds
Apply .containerRelativeFrame(_:alignment:_:) with the documentation’s length function.
container_shape
Apply .containerShape(_:).
container_value
.containerValue(\.key, value) for a key defined here.
content_margins
Apply .contentMargins(_:).
content_shape
Apply .contentShape(_:eoFill:).
content_transition
Apply .contentTransition(_:).
content_unavailable
ContentUnavailableView(title, systemImage:description:) — the placeholder for an empty list, a failed search, a screen with nothing on it yet.
context_menu
Apply .contextMenu(menuItems:).
context_menu_preview
.contextMenu(menuItems:preview:) — a menu with something to look at.
contrast
Apply .contrast(_:).
control_group
ControlGroup { … }
control_group_style
Apply .controlGroupStyle(_:).
control_size
Apply .controlSize(_:).
coordinate_space
Apply .coordinateSpace(name:).
copyable
Apply .copyable(_:) with the strings to offer.
corner_radius
Apply .cornerRadius(_:).
custom_animation
.animation(Animation(curve), value:) with a curve written in Rust.
custom_button_style
.buttonStyle(_:) with a style written in Rust.
custom_font⚠
Build Font.custom(_:size:).
custom_label_style
.labelStyle(_:) with a style written in Rust.
custom_layout
MyLayout { … } — the layout, given children.
custom_modifier
.modifier(_:) with a modifier written in Rust.
custom_shape
A shape written in Rust, as a view.
custom_shape_value
The shape as one of the crate’s super::Shape values.
custom_transition
.transition(_:) with a transition written in Rust.
cuttable
Apply .cuttable(for:action:) with the strings to offer.
date_picker
A DatePicker showing a fixed date, which the user cannot change. See date_picker_bound.
date_picker_bound
A DatePicker bound to Rust state, held as a Date’s seconds-since-2001.
date_picker_bound_components
As date_picker_bound, showing the named components.
date_picker_components_shown
As date_picker, showing the named components.
date_picker_range
DatePicker(_:selection:in:displayedComponents:) — a date picker with bounds.
date_picker_range_components
As date_picker_range, showing the named components.
date_picker_style
Apply .datePickerStyle(_:).
default_app_storage_standard
Apply .defaultAppStorage(_:) with UserDefaults.standard.
default_app_storage_suite
Apply .defaultAppStorage(_:) with a named suite.
default_focus
Apply .defaultFocus(_:_:priority:) with A == Bool.
default_scroll_anchor
Apply .defaultScrollAnchor(_:for:).
delete_disabled
Apply .deleteDisabled(_:).
dialog_icon
Apply .dialogIcon(_:).
dialog_prevents_app_termination
Apply .dialogPreventsAppTermination(_:).
dialog_severity
dialog_suppression_toggle
Apply .dialogSuppressionToggle(isSuppressed:).
dialog_suppression_toggle_labelled
Apply .dialogSuppressionToggle(_:isSuppressed:) with a label.
disable_autocorrection
Apply .disableAutocorrection(_:).
disabled
Apply .disabled(_:).
disclosure_group
DisclosureGroup(_:content:).
disclosure_group_style
Apply .disclosureGroupStyle(_:).
dismissal_confirmation_dialog
Apply .dismissalConfirmationDialog(_:shouldPresent:actions:message:).
divider
Create a Divider.
drag
DragGesture(minimumDistance:coordinateSpace: .local).
drag_configuration
Apply .dragConfiguration(_:).
drag_container
Apply .dragContainer(for:in:_:) with Item == String.
drag_container_selection
Apply .dragContainerSelection(_:containerNamespace:) with the selection.
drag_gesture
Attach a DragGesture.
drag_previews_formation
draggable_container_item
Apply .draggable(containerItemID:containerNamespace:).
draggable_text
Apply .draggable(_:) with a String payload.
drawing_group
Apply .drawingGroup() — render the subtree offscreen through Metal.
drop_configuration
Apply .dropConfiguration(_:).
drop_destination
Apply .dropDestination(for:action:isTargeted:).
drop_previews_formation
dump_value
A full recursive description of the value a handle holds, as Swift’s own dump writes it.
dump_value_to_depth
dump_value with an explicit depth limit.
dynamic_type_name
The Swift type of the view a handle wraps, as the runtime spells it.
dynamic_type_size
Apply .dynamicTypeSize(_:).
edges_ignoring_safe_area
Apply .edgesIgnoringSafeArea(_:).
ellipse
Ellipse()
elliptical_gradient_style
EllipticalGradient(colors:center:startRadiusFraction:endRadiusFraction:).
empty_view
Create an EmptyView.
env_key
Define an environment key, or return the one already defined for name.
environment_image_scale
Apply .environment(_:_:) for \EnvironmentValues.imageScale.
environment_object
Apply .environmentObject(_:).
environment_reader
A view whose content is a function of the environment.
environment_symbol_variants
Apply .environment(\.symbolVariants, _).
environment_value
.environment(\.key, value) for a key defined here.
equatable
.equatable() — wrap a view in EquatableView, whatever its type.
equatable_text
Text(verbatim:).equatable() — an EquatableView<Text>.
exportable_to_services
Apply .exportableToServices(_:) with the strings to export.
exports_item_providers
Apply .exportsItemProviders(_:onExport:onEdit:).
f64_binding
Build a Binding<Double> backed by Rust state.
file_dialog_browser_options
file_dialog_confirmation_label
Apply .fileDialogConfirmationLabel(_:).
file_dialog_customization_id
Apply .fileDialogCustomizationID(_:).
file_dialog_default_directory
Apply .fileDialogDefaultDirectory(_:).
file_dialog_imports_unresolved_aliases
Apply .fileDialogImportsUnresolvedAliases(_:).
file_dialog_message
Apply .fileDialogMessage(_:).
file_dialog_url_enabled
Apply .fileDialogURLEnabled(_:).
file_exporter
Apply .fileExporter(isPresented:item:contentTypes:defaultFilename:onCompletion:onCancellation:) with Item == String.
file_exporter_filename_label
Apply .fileExporterFilenameLabel(_:).
file_importer
Apply .fileImporter(isPresented:allowedContentTypes:onCompletion:).
file_mover
Apply .fileMover(isPresented:file:onCompletion:).
fill_then_stroke
.fill(_:).stroke(_:lineWidth:) — a shape filled, then outlined.
fill_then_stroke_border
.fill(_:).strokeBorder(_:style:) — a shape filled, then bordered inside its own edge.
find_disabled
Apply .findDisabled(_:).
find_navigator
Apply .findNavigator(isPresented:).
fixed_size
Apply .fixedSize(horizontal:vertical:).
flips_for_right_to_left_layout_direction
Apply .flipsForRightToLeftLayoutDirection(_:).
focus_effect_disabled
Apply .focusEffectDisabled(_:).
focus_key
Register a focused-value key, or return the one already registered for name.
focus_scope
Apply .focusScope(_:).
focus_section
Apply .focusSection(_:).
focusable
Apply .focusable(_:).
focused
Apply .focused(_:).
focused_object
Apply .focusedObject(_:).
focused_on
Apply .focused(_:) with a real, installed @FocusState.
focused_scene_object
Apply .focusedSceneObject(_:).
focused_scene_value
.focusedSceneValue(keyPath, value) — publish a value for the whole scene.
focused_value
Apply .focusedValue(_:) with an Observable object.
focused_value_keyed
.focusedValue(keyPath, value) — publish a value for the focused view.
font
Apply .font(.system(size:weight:)).
font_apply
Apply an already-built raw Font value with .font(_:).
font_custom
Apply .font(.custom(_:size:)).
font_design
Apply .fontDesign(_:).
font_ref
Apply a prebuilt Font with .font(_:).
font_size
Apply .font(.system(size:)).
font_system
Apply .font(.system(size:weight:design:)).
font_text_style
Apply .font(_:) with one of the built-in text styles.
font_weight
Apply .fontWeight(_:).
font_width
Apply .fontWidth(_:).
for_each
ForEach over a range of indices.
for_each_closed
ForEach(a...b, id: \.self) { … } — a closed range, identified by value.
for_each_items
ForEach over any Rust collection.
foreground_color
Apply .foregroundColor(_:).
foreground_color_value
Apply .foregroundColor(_:), the deprecated environment-writing one.
foreground_style_color
Apply .foregroundStyle(_:) with a colour.
foreground_style_hierarchical
Apply .foregroundStyle(.linearGradient(colors:startPoint:endPoint:)).
foreground_style_linear_gradient
foreground_style_of⚠
Apply .foregroundStyle(_:) with any ShapeStyle.
foreground_style_pair
Apply .foregroundStyle(_:_:) — a primary and a secondary style.
foreground_style_triple
Apply .foregroundStyle(_:_:_:) — three styles.
foreground_style_value
Apply .foregroundStyle(_:) to a Color that is already built.
form
Form { … }.
form_style
Apply .formStyle(_:).
frame
Apply .frame(width:height:), centred.
frame_aligned
Apply .frame(width:height:alignment:).
frame_max_infinity
Apply .frame(maxWidth:maxHeight:alignment:) with .infinity for both.
frame_max_width
Apply .frame(maxWidth: .infinity) — the width only.
frame_optional
Apply .frame(width:height:alignment:) with either dimension left out.
gauge
Gauge(value:in:label:).
gauge_style
Apply .gaugeStyle(_:).
geometry_group
.geometryGroup() — inlines to modifier(_GeometryGroupEffect()).
geometry_reader
GeometryReader { size in … }.
gesture
.gesture(_:including:).
glass_effect
Apply .glassEffect() — Liquid Glass, in its default shape.
glass_effect_id
Apply .glassEffectID(_:in:).
glass_effect_kind
The same, with the variant named.
glass_effect_transition
glass_effect_union
Apply .glassEffectUnion(id:namespace:).
gradient_color_space
The same, in whichever space is named.
gradient_color_space_perceptual
Gradient.colorSpace(_:) — the gradient interpolated in another space.
grayscale
Apply .grayscale(_:).
grid
Grid { … } over GridRow children.
grid_cell_anchor
Apply .gridCellAnchor(_:).
grid_cell_columns
Apply .gridCellColumns(_:).
grid_cell_unsized_axes
Apply .gridCellUnsizedAxes(_:).
grid_column_alignment
Apply .gridColumnAlignment(_:).
grid_row
GridRow { … } over N children.
grid_row_aligned
GridRow(alignment:) { … } — how this row’s cells sit against each other vertically, overriding the grid’s own alignment for this row only.
group
Group { … } — a container that groups without laying out.
group_box
GroupBox { … }.
group_box_style
Apply .groupBoxStyle(_:).
hand_gesture_shortcut
Apply .handGestureShortcut(_:).
handle_word
The handle as a raw +1 AnyView word.
handles_external_events
Apply .handlesExternalEvents(preferring:allowing:).
header_prominence
Apply .headerProminence(_:).
help
Apply .help(_:).
help_text
Apply .help(_:).
hidden
Apply .hidden().
hierarchical_style
HierarchicalShapeStyle.primary and friends, as a ShapeStyle.
high_priority_gesture
Apply .highPriorityGesture(_:including:) with a DragGesture.
high_priority_gesture_of
.highPriorityGesture(_:including:) — this gesture wins over the view’s own.
horizontal_radio_group_layout
Apply .horizontalRadioGroupLayout(_:).
hsplit_view
HSplitView { content } — a draggable divider between side-by-side panes.
hstack
HStack from children.
hstack_aligned
HStack(alignment:) from children.
hstack_aligned_spacing
HStack(alignment:spacing:) from children.
hstack_spacing
HStack(spacing:) from children.
hue_rotation
Apply .hueRotation(_:), in radians.
i64_binding
id
Apply .id(_:).
ignores_safe_area
Apply .ignoresSafeArea(_:).
image_named
Build a SwiftUI.Image from a named asset in the main bundle.
image_scale
Apply .imageScale(_:).
image_system
Build a SwiftUI.Image from an SF Symbol name.
implicit_blend_mode_style
ShapeStyle.blendMode(_:) — the current foreground style, blended.
implicit_opacity_style
ShapeStyle.opacity(_:) — the current foreground style, faded.
implicit_shadow_style
.shadow(_:) applied to the implicit foreground style.
importable_from_services
Apply .importableFromServices(for:action:).
imports_item_providers
Apply .importsItemProviders(_:onImport:).
inspector
Apply .inspector(isPresented:content:).
inspector_column_width
Apply .inspectorColumnWidth(_:).
inspector_column_width_range
Apply .inspectorColumnWidth(min:ideal:max:) — a width the user can drag within.
interaction_activity_tracking_tag
Apply .interactionActivityTrackingTag(_:).
interactive_dismiss_disabled
Apply .interactiveDismissDisabled(_:).
invalidatable_content
Apply .invalidatableContent(_:).
italic
Apply .italic().
item_provider
Apply .itemProvider(_:) with a provider carrying item.
kerning
Apply .kerning(_:).
keyboard_shortcut
keyframe_animator
Apply .keyframeAnimator(initialValue:repeating:content:keyframes:).
label
Create a Label(_:systemImage:).
label_icon_to_title_spacing
Apply .labelIconToTitleSpacing(_:).
label_reserved_icon_width
Apply .labelReservedIconWidth(_:).
label_style
Apply .labelStyle(_:).
label_style_fn
Register a label style.
labeled_content_style
Apply .labeledContentStyle(_:).
labels_hidden
Apply .labelsHidden(_:).
labels_visibility
Apply .labelsVisibility(_:).
layout
Build a layout from a sizing pass and a placement pass.
layout_direction_behavior
layout_priority
Apply .layoutPriority(_:).
layout_value_int
Apply .layoutValue(key:value:) with a runtime-synthesized key.
lazy_hgrid
LazyHGrid(rows:) { … } — children flowed across the named rows.
lazy_hstack
LazyHStack from children.
lazy_hstack_aligned
LazyHStack(alignment:) from children.
lazy_vgrid
LazyVGrid(columns:) { … } — children flowed down the named columns.
lazy_vstack
LazyVStack from children.
lazy_vstack_aligned
LazyVStack(alignment:) from children.
line_height
Apply .lineHeight(_:).
line_limit
Apply .lineLimit(_:).
line_spacing
Apply .lineSpacing(_:).
linear_gradient_stops
A LinearGradient built from explicit Gradient.Stops.
linear_gradient_stops_view
A LinearGradient as a view, for .mask { … } and friends.
linear_gradient_style
Build a LinearGradient value, with its metadata and ShapeStyle witness.
linear_gradient_style_of
As linear_gradient_style, from Color values that are already built.
link
Link(_:destination:) — a label that opens a URL.
list
List { … } with static content.
list_identified
List(ids, id: \.self) { id in … } — rows SwiftUI identifies by value.
list_identified_str
List(names, id: \.self) { name in … } — the same, keyed by String.
list_item_tint
Apply .listItemTint(_:).
list_item_tint_monochrome
Apply .listItemTint(_:) with the monochrome tint or none.
list_row_background
Apply .listRowBackground(_:).
list_row_insets
Apply .listRowInsets(_:).
list_row_separator
Apply .listRowSeparator(_:).
list_row_separator_tint
Apply .listRowSeparatorTint(_:edges:).
list_section_separator
Apply .listSectionSeparator(_:).
list_section_separator_tint
Apply .listSectionSeparatorTint(_:edges:).
list_style
Apply .listStyle(_:).
locale_language_thai
Locale.Language(languageCode: .thai).
long_press
LongPressGesture(minimumDuration:maximumDistance:).
long_press_gesture
Attach a LongPressGesture with .gesture(_:including:).
luminance_to_alpha
Apply .luminanceToAlpha(_:).
magnify
MagnifyGesture(minimumScaleDelta:).
magnify_gesture
Attach a MagnifyGesture.
mask
Apply .mask(alignment: .center) { content }.
mask_aligned
Apply .mask(alignment:_:).
mask_plain
.mask(_:) — the alignment-free overload, which builds a _MaskEffect.
matched_geometry_effect
Apply .matchedGeometryEffect(id:in:properties:anchor:isSource:).
matched_geometry_effect_in
Apply .matchedGeometryEffect(id:in:properties:anchor:isSource:) in a shared namespace.
matched_transition_source
Apply .matchedTransitionSource(id:in:).
material_active_appearance
material_parts
A Material’s value, metadata and ShapeStyle witness.
menu
Menu(_:content:).
menu_action_dismiss_behavior
menu_button_style
Apply .menuButtonStyle(_:).
menu_indicator
Apply .menuIndicator(_:).
menu_order
menu_style
Apply .menuStyle(_:).
meta_of
Declare a Rust enum mirroring a Swift type’s static members.
minimum_scale_factor
Apply .minimumScaleFactor(_:).
modifier_fn
Register a view modifier. A closure taking the content is one.
modifier_key_alternate
Apply .modifierKeyAlternate(_:_:).
monospaced
Apply .monospaced().
monospaced_digit
Apply .monospacedDigit(_:).
move_disabled
Apply .moveDisabled(_:).
multiline_alignment
Apply .multilineTextAlignment(_:).
namespace_id⚠
A fresh Namespace.ID — what @Namespace produces.
navigation_bar_back_button_hidden
Apply .navigationBarBackButtonHidden(_:).
navigation_destination
Apply .navigationDestination(isPresented:destination:).
navigation_destination_for
.navigationDestination(for: Int.self) { value in … } — value-based routing.
navigation_document
Apply .navigationDocument(_:) with a Transferable item.
navigation_document_url
Apply .navigationDocument(_:) with a URL.
navigation_link
NavigationLink(_:destination:).
navigation_link_labelled
NavigationLink(destination:) { label } — a link whose label is a view.
navigation_split_view
NavigationSplitView { sidebar } detail: { detail }.
navigation_split_view3
.navigationSplitViewStyle(.automatic) NavigationSplitView { sidebar } content: { content } detail: { detail }.
navigation_split_view_column_width
.navigationSplitViewColumnWidth(_:) — one CGFloat, so d0 and nothing else.
navigation_split_view_style
Apply .navigationSplitViewStyle(_:).
navigation_split_view_style_automatic
navigation_stack
NavigationStack { … }.
navigation_subtitle
Apply .navigationSubtitle(_:).
navigation_subtitle_text
Apply .navigationSubtitle(_:).
navigation_title
Apply .navigationTitle(_:).
navigation_title_bound
Apply .navigationTitle(_:) with a Binding<String> — an editable title.
navigation_transition
Apply .navigationTransition(_:) with the automatic transition.
navigation_view_style_automatic
.navigationViewStyle(.automatic)
navigation_view_style_columns
.navigationViewStyle(.columns) — the two-column split.
navigation_view_style_double_column
.navigationViewStyle(.doubleColumn) — sidebar plus detail.
normalise_dump
Remove the parts of a dump that legitimately differ between two runs.
ns_view_fn
Register a representable from a maker and an updater.
ns_view_representable
The representable as a view.
observed_preference
The last preference value onPreferenceChange reported, if any.
offset
Apply .offset(x:y:).
on_appear
Apply .onAppear(perform:).
on_change
Apply .onChange(of:initial:_:), watching an Int.
on_change_bool
Apply .onChange(of:initial:_:), watching a Bool.
on_change_f64
Apply .onChange(of:initial:_:), watching a Double.
on_change_str
Apply .onChange(of:initial:_:), watching a String.
on_command
Apply .onCommand(_:perform:).
on_continue_user_activity
Apply .onContinueUserActivity(_:perform:).
on_continuous_hover
Apply .onContinuousHover(coordinateSpace:perform:).
on_copy_command
Apply .onCopyCommand(perform:), offering the given plain-text items.
on_cut_command
Apply .onCutCommand(perform:), offering the given plain-text items.
on_delete_command
Apply .onDeleteCommand(perform:).
on_disappear
Apply .onDisappear(perform:).
on_drag
Apply .onDrag(_:preview:).
on_drag_ended_value
The same, with the value SwiftUI delivered.
on_drag_gesture
Attach a DragGesture with an onEnded handler.
on_drag_session_updated
Apply .onDragSessionUpdated(_:).
on_drop
Apply .onDrop(of:isTargeted:perform:).
on_drop_session_updated
Apply .onDropSessionUpdated(_:).
on_exit_command
Apply .onExitCommand(perform:).
on_geometry_change_f64
Apply .onGeometryChange(for: Double.self, of:action:).
on_geometry_change_int
Apply .onGeometryChange(for:of:action:).
on_hover
Apply .onHover(perform:).
on_insert
.onInsert(of:perform:) — accept a drop into a ForEach’s rows.
on_interactive_resize_change
Apply .onInteractiveResizeChange(_:).
on_key
.onKeyPress(_:action:) — one named key, with no KeyPress to inspect.
on_key_press
Apply .onKeyPress(characters:phases:action:).
on_long_press_gesture
Apply .onLongPressGesture(minimumDuration:maximumDistance:pressing:perform:).
on_magnify_ended
Attach a MagnifyGesture with an onEnded handler.
on_modifier_keys_changed
Apply .onModifierKeysChanged(mask:initial:_:).
on_move_command
Apply .onMoveCommand(perform:).
on_open_url
Apply .onOpenURL(perform:).
on_paste_command
Apply .onPasteCommand(of:perform:).
on_pencil_double_tap
Apply .onPencilDoubleTap(perform:).
on_pencil_squeeze
Apply .onPencilSqueeze(perform:).
on_preference_change_int
Apply .onPreferenceChange(_:perform:), recording the value.
on_receive
Apply .onReceive(_:perform:) with a Combine.Empty<Int, Never>.
on_rotate_ended
Attach a RotateGesture with an onEnded handler.
on_scroll_geometry_change
Apply .onScrollGeometryChange(for:prefersLast:of:action:).
on_scroll_geometry_change_f64
Apply .onScrollGeometryChange(for: Double.self, prefersLast:of:action:).
on_scroll_phase_change
Apply .onScrollPhaseChange(_:).
on_scroll_target_visibility_change
Apply .onScrollTargetVisibilityChange(for:threshold:_:) with A == Int.
on_scroll_visibility_change
Apply .onScrollVisibilityChange(threshold:_:).
on_submit
Apply .onSubmit(of:_:).
on_tap_gesture
Apply .onTapGesture(count:perform:). The action may capture, as super::button’s may — a tap handler that cannot know which row it is on is one every list has to route around.
on_write
Register what to do when a bound control writes.
opacity
Apply .opacity(_:).
opacity_of_style
.opacity(_:) applied to a style that is already built.
opacity_over_style
.opacity(_:) applied to any ShapeStyle — _OpacityShapeStyle<Base>.
opaque_result_type⚠
The concrete type behind a -> some View, with its View witness and size.
optional_i64_binding
Build a Binding<Int> backed by Rust state. A Binding<Int?> over Rust state.
outline_group
OutlineGroup(root, id:children:content:) over Int nodes with no children.
overlay
Apply .overlay(alignment: .center) { content }.
overlay_aligned
Apply .overlay(alignment:content:).
overlay_preference_value
Apply .overlayPreferenceValue(_:alignment:_:) with fixed content.
overlay_style_in_shape⚠
Apply .overlay(_:in:fillStyle:) — a style drawn inside a shape.
padding
Apply .padding(_:).
padding_default
Apply .padding() — every edge, at whatever length the system picks.
padding_edges
padding_insets
.padding(_: EdgeInsets) — a different inset per edge.
padding_set
Apply .padding(_:_:) — chosen edges, an explicit length.
palette_selection_effect
paste_button
PasteButton(supportedContentTypes:payloadAction:) — a button that pastes.
paste_destination
Apply .pasteDestination(for:action:validator:).
persistent_system_overlays
Apply .persistentSystemOverlays(_:).
phase_animator
Apply .phaseAnimator(_:content:animation:) with Phase == Int.
picker
A Picker whose selection cannot change: Binding.constant is read-only. Use picker_bound() for one the user can actually pick from.
picker_bound
A Picker bound to Rust state: choosing writes the new index back.
picker_style
Apply .pickerStyle(_:).
pointer_style
Apply .pointerStyle(_:).
pointer_visibility
Apply .pointerVisibility(_:).
popover
popover with a fixed flag. It cannot be dismissed: SwiftUI treats a Binding.constant as read-only, so the presentation has no way to write false back. Use popover_bound for one the user can close.
popover_anchored
Apply .popover(isPresented:attachmentAnchor:arrowEdges:content:).
popover_bound
popover bound to Rust state, so dismissing it writes false back.
position
Apply .position(_:).
preference_int
Apply .preference(key:value:) with a runtime-synthesized key.
preferred_color_scheme
Apply .preferredColorScheme(_:) — light or dark for this subtree.
prefers_default_focus
Apply .prefersDefaultFocus(_:in:).
presentation_background
Apply .presentationBackground(alignment:content:).
presentation_background_interaction
presentation_compact_adaptation
presentation_content_interaction
presentation_corner_radius
Apply .presentationCornerRadius(_:).
presentation_detents
Apply .presentationDetents(_:).
presentation_drag_indicator
Apply .presentationDragIndicator(_:).
presentation_prevents_app_termination
Apply .presentationPreventsAppTermination(_:).
presentation_sizing
Apply .presentationSizing(_:).
presented_window_style
Apply .presentedWindowStyle(_:).
presented_window_toolbar_style
Apply .presentedWindowToolbarStyle(_:).
preview_context
Apply .previewContext(_:).
preview_device
Apply .previewDevice(_:).
preview_display_name
Apply .previewDisplayName(_:).
preview_interface_orientation
preview_layout
Apply .previewLayout(_:).
privacy_sensitive
Apply .privacySensitive(_:).
progress
Create a determinate ProgressView.
progress_indeterminate
Create an indeterminate ProgressView — the spinner, with no value.
progress_view_style
Apply .progressViewStyle(_:).
progress_view_style_circular
Apply .progressViewStyle(.circular).
projection_effect
Apply .projectionEffect(_:) with a 3×3 matrix in row-major order.
rectangle
Rectangle()
redacted
Apply .redacted(_:).
refreshable
Apply .refreshable(action:).
register
Register any LayoutAlgorithm, returning the handle SwiftUI stores.
rename_action
Apply .renameAction(_:).
rename_button
RenameButton() — the button a .renameAction puts in a context menu.
replace_disabled
Apply .replaceDisabled(_:).
rotate
RotateGesture(minimumAngleDelta:), taking degrees.
rotate_gesture
Attach a RotateGesture. The minimum delta is an Angle, i.e. radians.
rotation
Apply .rotationEffect(.degrees(_), anchor:).
rotation_3d
Apply .rotation3DEffect(_:axis:).
rounded_rectangle
RoundedRectangle(cornerRadius:), with the .continuous style Swift source gets when it leaves the style out.
rounded_rectangle_styled
RoundedRectangle(cornerRadius:style:).
safe_area_bar
Apply .safeAreaBar(edge:alignment:spacing:content:).
safe_area_inset
Apply .safeAreaInset(edge:alignment:spacing:content:).
safe_area_padding
.safeAreaPadding(_:) — inlines to modifier(SafeAreaPaddingModifier(edges: .all, insets: EdgeInsets(_all:))).
saturation
Apply .saturation(_:).
scale
Apply .scaleEffect(_:anchor:).
scaled_to_fill
Apply .scaledToFill(_:).
scaled_to_fit
Apply .scaledToFit(_:).
scene_padding
Apply .scenePadding(_:).
scroll
Wrap in a vertical ScrollView with indicators shown.
scroll_bounce_behavior
Apply .scrollBounceBehavior(_:).
scroll_clip_disabled
Apply .scrollClipDisabled(_:).
scroll_content_background
Apply .scrollContentBackground(_:).
scroll_disabled
Apply .scrollDisabled(_:).
scroll_dismisses_keyboard
scroll_edge_effect_hidden
Apply .scrollEdgeEffectHidden(_:).
scroll_edge_effect_style
Apply .scrollEdgeEffectStyle(_:for:).
scroll_indicators
Apply .scrollIndicators(_:).
scroll_indicators_flash
Apply .scrollIndicatorsFlash(_:).
scroll_position_edge
.scrollPosition(_:anchor:) — scroll to an edge, and stay bound to it.
scroll_position_id
Apply .scrollPosition(id:anchor:).
scroll_target_behavior
Apply .scrollTargetBehavior(_:).
scroll_target_layout
Apply .scrollTargetLayout(_:).
scroll_transition
Apply .scrollTransition(_:axis:transition:).
scroll_transition_ends
Apply .scrollTransition(topLeading:bottomTrailing:axis:transition:) — the two ends of the scroll configured separately.
scroll_view_reader
ScrollViewReader { proxy in content } — a scroll view that can be scrolled from code.
search_completion
Apply .searchCompletion(_:).
search_focused
Apply .searchFocused(_:).
search_presentation_toolbar_behavior
search_scopes
Apply .searchScopes(_:scopes:) with A == Int.
search_selection
Apply .searchSelection(_:).
search_suggestions
Apply .searchSuggestions(_:for:).
search_toolbar_behavior
searchable
Apply .searchable(text:isPresented:placement:prompt:).
section
Section(header:) { … }.
section_actions
Apply .sectionActions(content:).
section_content
Section { … } — no header, no footer.
section_expanded
Section(isExpanded:) { … } header: { … } — a section that collapses.
section_footer
Section(footer:) { … } — a footer with no header.
section_header_footer
Section(header:footer:) { … }.
section_index_label
.sectionIndexLabel(_:) — inlines through _trait to modifier(_TraitWritingModifier<SectionIndexLabelKey>(value:)).
securefield
Create a SecureField showing a fixed string, which the user cannot edit. See securefield_bound.
securefield_bound
Create a SecureField wired to Rust state — typing writes into state.
selection_disabled
Apply .selectionDisabled(_:).
sensory_feedback
Apply .sensoryFeedback(_:trigger:condition:).
settings_link
SettingsLink() — a button that opens the app’s Settings scene.
shadow
Apply .shadow(color:radius:x:y:).
shadow_over_style
.shadow(_:) applied to any ShapeStyle — _ShadowShapeStyle<Base>.
shadow_style
A ShadowStyle — .drop(...) or .inner(...).
shape_fn
Register a shape. A closure taking the path and the rect is one.
share_link_url
ShareLink(item:) for a URL.
sheet
sheet with a fixed flag. It cannot be dismissed: SwiftUI treats a Binding.constant as read-only, so the presentation has no way to write false back. Use sheet_bound for one the user can close.
sheet_bound
sheet bound to Rust state, so dismissing it writes false back.
sheet_bound_dismiss
sheet(isPresented:onDismiss:content:) bound to Rust state, with a callback for the closing.
show_window
Show a view in a native window and run the event loop.
sign_in_with_apple_button
SignInWithAppleButton(label, onRequest:onCompletion:).
sign_in_with_apple_button_style
.signInWithAppleButtonStyle(_:).
simultaneous_gesture
Apply .simultaneousGesture(_:including:) with a DragGesture.
simultaneous_gesture_of
.simultaneousGesture(_:including:) — both this and the view’s own run.
slider
Create a Slider over a closed range.
slider_app_storage
Slider(value: $volume, in: lower...upper) over a real @AppStorage.
slider_bound
A Slider wired to Rust state: it renders the current value and writes every drag straight back.
slider_step_bound
A Slider that snaps to multiples of step.
slider_thumb_visibility
Apply .sliderThumbVisibility(_:).
spacer
Create a Spacer.
speech_adjusted_pitch
Apply .speechAdjustedPitch(_:).
speech_always_includes_punctuation
Apply .speechAlwaysIncludesPunctuation(_:).
speech_announcements_queued
Apply .speechAnnouncementsQueued(_:).
speech_spells_out_characters
Apply .speechSpellsOutCharacters(_:).
spring_loading_behavior
stepper
Create a Stepper over a closed range.
stepper_actions
Stepper(_:onIncrement:onDecrement:) — a stepper driven by callbacks.
stepper_app_storage
Stepper(label, value: $count, in: lower...upper, step:) over a real @AppStorage.
stepper_bound
A Stepper wired to Rust state: − and + write straight back.
strikethrough
Apply .strikethrough(_:pattern:color:).
stroke_border
.strokeBorder(_:lineWidth:antialiased:) on an InsettableShape.
styled_text
Create a Text with font size, weight and colour applied.
submit_label
submit_scope
Apply .submitScope(_:).
subscription_view
SubscriptionView(content:publisher:action:) — onReceive as a view.
swipe_actions
Apply .swipeActions(edge:allowsFullSwipe:isPresented:content:).
symbol_color_rendering_mode
Apply .symbolColorRenderingMode(_:).
symbol_color_rendering_mode_flat
.symbolColorRenderingMode(.flat) — inlines to environment(\.symbolColorRenderingMode, mode).
symbol_effect
.symbolEffect(_:) with any of the indefinite effects.
symbol_effect_pulse
.symbolEffect(.pulse) — inlines to modifier(_IndefiniteSymbolEffectModifier(effect:options:isActive:)).
symbol_effects_removed
.symbolEffectsRemoved(_:) — inlines to modifier(_SymbolEffectsRemovedModifier(isEnabled:)), one Bool.
symbol_rendering_mode
Apply .symbolRenderingMode(_:).
symbol_variable_value_mode
Apply .symbolVariableValueMode(_:).
symbol_variable_value_mode_color
.symbolVariableValueMode(.color) — inlines to environment(\.symbolVariableValueMode, mode).
symbol_variant
system_color
Create a view of one of SwiftUI’s named colours.
system_color_value
The value behind one of SwiftUI’s named colours.
system_font_full⚠
Build Font.system(size:weight:design:).
system_image
Create an Image from an SF Symbol name.
tab
Tab("Home", systemImage: "house") { … } — one tab of a modern TabView.
tab_bar_minimize_behavior
Apply .tabBarMinimizeBehavior(_:).
tab_item
Apply .tabItem(_:).
tab_view
TabView { … }.
tab_view_customization
.tabViewCustomization(_:) with a live customization, not nil.
tab_view_customization_none
.tabViewCustomization(nil).
tab_view_of
TabView { Tab(…) } — the modern tab view, over one tab.
tab_view_search_activation
.tabViewSearchActivation(_:).
tab_view_search_activation_automatic
.tabViewSearchActivation(.automatic) — a resilient struct, so by address.
tab_view_sidebar_bottom_bar
.tabViewSidebarBottomBar { … }
tab_view_sidebar_footer
.tabViewSidebarFooter { … }
tab_view_sidebar_header
.tabViewSidebarHeader { … }
tab_view_style
Apply .tabViewStyle(_:).
tab_view_style_automatic
.tabViewStyle(.automatic)
tab_view_tabs
TabView { Tab(…); Tab(…); … } — the modern tab view over any number of tabs.
table
Table(rows) { TableColumn(title) { row in Text(cell) } }.
table_column_headers
Apply .tableColumnHeaders(_:).
table_style
Apply .tableStyle(_:).
tag
Apply .tag(_:).
tap
TapGesture(count:).
task
Apply .task(id:priority:_:).
task_once
Apply .task { … } — the spelling with no id:.
text
Create a Text view.
text_baseline_offset
Text.baselineOffset(_:)
text_binding
Build a Binding<Bool> over Rust state, for direct write-back testing. Build a Binding<String> backed by Rust state.
text_bold
Text.bold() — the one that returns Text.
text_case
Apply .textCase(_:).
text_content_type
Apply .textContentType(_:).
text_editor
TextEditor(text:) — a multi-line editable field.
text_editor_style
Apply .textEditorStyle(_:).
text_field_style
Apply .textFieldStyle(_:).
text_font
Text.font(_:) — the overload that returns Text.
text_font_weight
Text.fontWeight(_:) — the overload that returns Text.
text_foreground_color
Text.foregroundColor(_:) — the overload that returns Text.
text_foreground_hierarchical
Text.foregroundStyle(_:) with one of the hierarchical styles.
text_foreground_linear_gradient
Text.foregroundStyle(LinearGradient(...)).
text_foreground_style⚠
Text.foregroundStyle(_:) — the overload that returns Text.
text_input_completion
Apply .textInputCompletion(_:).
text_input_formatting_control_visibility
Apply .textInputFormattingControlVisibility(_:for:).
text_input_suggestions
Apply .textInputSuggestions(_:content:) with [EdgeInsets].
text_interpolated
Text("Item \(i)") — a Text built through SwiftUI’s own interpolation.
text_italic
Text.italic()
text_kerning
Text.kerning(_:) — space added between every pair of characters.
text_monospaced
Text.monospaced(_:)
text_renderer
Apply .textRenderer(_:) with a runtime-synthesized renderer.
text_scale
Apply .textScale(_:isEnabled:).
text_selection
Apply .textSelection(_:).
text_selection_affinity
Apply .textSelectionAffinity(_:).
text_tracking
Text.tracking(_:) — like kerning, but not suppressed between the pairs the font has a ligature for.
text_typesetting_explicit
Text.typesettingLanguage(_:isEnabled:) with .explicit(_:).
text_typesetting_language
Text.typesettingLanguage(_:isEnabled:) with a Locale.Language.
text_verbatim
Text(verbatim:) — the string as written, with no localisation lookup.
text_verbatim_words⚠
The four words a verbatim Text occupies.
textfield
Create a TextField showing a fixed string, which the user cannot edit.
textfield_axis
Create a TextField that grows along axis as it is typed into.
textfield_bound
Create a TextField wired to Rust state — typing writes into state.
timeline
TimelineView(.animation) { … } — rebuild the content on SwiftUI’s clock.
tint
Apply .tint(_:).
tint_color
Apply .tint(_:) through the Color? overload.
tint_value
Apply .tint(_:) to a Color that is already built — one of SwiftUI’s named colours, which no set of components spells.
toggle
Create a Toggle with a text label.
toggle_app_storage
Toggle(label, isOn: $flag) — a toggle driven directly by a real @AppStorage.
toggle_bound
A Toggle wired to Rust state: it renders the current value and writes changes straight back.
toggle_labelled
Toggle(isOn:) { label } — a toggle whose label is any view.
toggle_sources
Toggle(_:isOn: [Binding<Bool>]) — one toggle over several bindings.
toggle_style
Apply .toggleStyle(_:).
toolbar
Apply .toolbar { ToolbarItem { content } }.
toolbar_background
Apply .toolbarBackground(_:in:).
toolbar_background_visibility
Apply .toolbarBackgroundVisibility(_:for:).
toolbar_color_scheme
Apply .toolbarColorScheme(_:in:).
toolbar_customizable
Apply .toolbar(id:) { ToolbarItem(id:) { content } } — a toolbar the user can rearrange, whose arrangement the system persists under toolbar_id.
toolbar_customizable_placed
The same, with the item placed somewhere other than .automatic.
toolbar_item_hidden
Apply .toolbarItemHidden(_:).
toolbar_placed
Apply .toolbar { ToolbarItem(placement:) { content } }.
toolbar_role
Apply .toolbarRole(_:).
toolbar_title_display_mode
toolbar_title_menu
Apply .toolbarTitleMenu(content:).
toolbar_visibility
Apply .toolbarVisibility(_:for:).
touch_bar
Apply .touchBar(content:).
touch_bar_customization_label
Apply .touchBarCustomizationLabel(_:).
touch_bar_item_presence
Apply .touchBarItemPresence(_:).
touch_bar_item_principal
Apply .touchBarItemPrincipal(_:).
tracking
Apply .tracking(_:).
transaction
Apply .transaction(_:).
transform_anchor_preference
Apply .transformAnchorPreference(key:value:transform:).
transform_effect
Apply .transformEffect(_:) with a CGAffineTransform’s six components.
transform_environment
.transformEnvironment(_:transform:) for any property this crate has a key for.
transform_environment_image_scale
Apply .transformEnvironment(_:_:) for \EnvironmentValues.imageScale.
transform_preference_double
Apply .transformPreference(_:_:), doubling the value in place.
transition
Apply .transition(_:) with an AnyTransition already built.
transition_combined
AnyTransition.combined(with:) — the receiver in x20, the other in x0.
transition_fn
Register a transition. A closure taking the content and the phase is one.
transition_identity_value
AnyTransition.identity — a transition that does nothing.
transition_opacity
Apply .transition(.opacity).
transition_opacity_value
AnyTransition.opacity, as one word.
transition_scale
AnyTransition.scale(scale:anchor:), as the single word it is.
transition_scale_value
AnyTransition.scale — the static property, which scales from nothing.
transition_slide
Apply .transition(.slide) — in from the leading edge, out to the trailing.
truncation_mode
Apply .truncationMode(_:).
tuple_view
TupleView<(A, B, …)> — what a @ViewBuilder makes of several views, with no container around them.
type_select_equivalent
Apply .typeSelectEquivalent(_:).
typesetting_language
Apply .typesettingLanguage(_:).
underline
Apply .underline(_:pattern:color:).
unredacted
Apply .unredacted(_:).
user_activity
Apply .userActivity(_:isActive:_:).
view_opacity
.opacity(_:), taking Color’s own overload when the receiver is a Color.
view_that_fits
ViewThatFits(in:) { … } — the first child that fits.
visual_effect
Apply .visualEffect(_:).
vsplit_view
VSplitView { content } — the same, stacked.
vstack
VStack from children.
vstack_aligned
VStack(alignment:) from children.
vstack_aligned_spacing
VStack(alignment:spacing:) from children.
vstack_spacing
VStack(spacing:) from children.
window_dismiss_behavior
window_full_screen_behavior
window_minimize_behavior
window_resize_anchor
Apply .windowResizeAnchor(_:).
window_resize_behavior
window_toolbar_full_screen_visibility
wrap_word
Wrap a raw AnyView word back into a handle.
writing_direction
Apply .writingDirection(strategy:).
writing_tools_affordance_visibility
Apply .writingToolsAffordanceVisibility(_:).
writing_tools_behavior
z_index
Apply .zIndex(_:).
zstack
ZStack from children, centred.
zstack_aligned
ZStack(alignment:) from children.

Type Aliases§

Persist
Where a persistent BoundState also writes on every set.