Skip to content

Latest commit

 

History

History
668 lines (580 loc) · 37 KB

readiness.md

File metadata and controls

668 lines (580 loc) · 37 KB

ViewInspector readiness list

This document reflects the current status of the ViewInspector framework: which Views and Modifiers are available for inspection.

Please open a PR if any View or Modifier is not listed!

Denotations

Status Meaning
Full inspection support with access to the underlying values or callbacks
🧑‍💻 Pending development

View Types

Status View Inspectable Attributes
🧑‍💻 AccessoryWidgetBackground
🧑‍💻 AddPassToWalletButton
ActionSheet title view, message view, button(_ index: Int), dismiss()
Alert title view, message view, actions view, primaryButton, secondaryButton, dismiss()
AngularGradient gradient: Gradient, center: UnitPoint, startAngle: Angle, endAngle: Angle
AnyView contained view
🧑‍💻 ArtworkImage
AsyncImage contentView(AsyncImagePhase), url: URL, scale: CGFloat, transaction: Transaction
Button label view, role: ButtonRole?, tap()
ButtonStyleConfiguration.Label
🧑‍💻 CameraView
Canvas symbols view, colorMode: ColorRenderingMode, opaque: Bool, rendersAsynchronously: Bool
🧑‍💻 Chart
Color value: Color, rgba: (Float, Float, Float, Float), name: String
ColorPicker label view, select(color: Color)
ControlGroup
ConditionalContent contained view
ConfirmationDialog title view, message view, actions view, titleVisibility: Visibility, dismiss()
Custom View actualView: CustomView, viewBuilder container
Custom ViewModifier
Custom ViewModifier.Content
UIViewRepresentable uiView: UIView
UIViewControllerRepresentable viewController: UIViewController
DatePicker label view, select(date: Date)
🧑‍💻 DevicePicker
DisclosureGroup contained view, label view, isExpanded: Bool, expand(), collapse()
Divider
EditButton editMode: Binding<EditMode>?
EllipticalGradient gradient: Gradient, center: UnitPoint, startRadiusFraction: CGFloat, endRadiusFraction: CGFloat
EmptyView
EquatableView contained view
🧑‍💻 FamilyActivityPicker
Font (*) size: CGFloat, isFixedSize: Bool, name: String, weight: Font.Weight, design: Font.Design, style: Font.TextStyle
ForEach contained view, callOnDelete, callOnMove, callOnInsert
Form contained view
🧑‍💻 Gauge
FullScreenCover dismiss()
GeometryReader contained view
Grid alignment: Alignment, horizontalSpacing: CGFloat?, verticalSpacing: CGFloat?
GridRow alignment: VerticalAlignment?
Group contained view
GroupBox contained view, label view
HSplitView contained view
HStack contained view, alignment: VerticalAlignment, spacing: CGFloat?
Image label view, actualImage: Image
Image (*) rootImage: Image, name: String?, (ui,ns,cg)Image: (UI,NS,CG)Image, orientation: Image.Orientation, scale: CGFloat
Label title view, icon view
LabeledContent contained view, label view
LabelStyleConfiguration.Icon
LabelStyleConfiguration.Title
LazyHGrid contained view, alignment: VerticalAlignment, spacing: CGFloat?, pinnedViews: PinnedScrollableViews, rows: [GridItem]
LazyHStack contained view, alignment: VerticalAlignment, spacing: CGFloat?, pinnedViews: PinnedScrollableViews
LazyVGrid contained view, alignment: HorizontalAlignment, spacing: CGFloat?, pinnedViews: PinnedScrollableViews, columns: [GridItem]
LazyVStack contained view, alignment: HorizontalAlignment, spacing: CGFloat?, pinnedViews: PinnedScrollableViews
LinearGradient gradient: Gradient, startPoint: UnitPoint, endPoint: UnitPoint
Link label view, url: URL
List contained view
🧑‍💻 LocalAuthenticationView
LocationButton title: LocationButton.Title, tap()
Map (set)coordinateRegion: MKCoordinateRegion, (set)userTrackingMode: MapUserTrackingMode, (set)mapRect: MKMapRect, interactionModes: MapInteractionModes, showsUserLocation: Bool
MapAnnotation coordinate: CLLocationCoordinate2D, viewType: MapAnnotation.Type, ()anchorPoint: CGPoint, ()tintColor: Color?, (*)contained view
Menu contained view, label view, primaryAction
MenuButton contained view, label view
MenuStyleConfiguration.Content
MenuStyleConfiguration.Label
ModifiedContent contained view
MultiDatePicker labelView, minimumDate: Date?, maximumDate: Date?, select(dateComponents: Set<DateComponents>)
NavigationDestination contained view
NavigationLink contained view, label view, isActive: Bool, activate(), deactivate(), value
NavigationSplitView contained view, sidebar view, detail view
NavigationStack contained view
NavigationView contained view
🧑‍💻 NowPlayingView
Optional contained view
OutlineGroup leaf view, source data
PasteButton supportedTypes: [String]
🧑‍💻 PayWithApplePayButton
🧑‍💻 PhotosPicker
Picker contained view, label view, select(value: Hashable), selectedValue()
Popover contained view, attachmentAnchor: PopoverAttachmentAnchor, arrowEdge: Edge, dismiss()
PrimitiveButtonStyleConfiguration.Label
ProgressView label view, currentValueLabel view, fractionCompleted: Double?, progress: Progress
ProgressViewStyleConfiguration.CurrentValueLabel
ProgressViewStyleConfiguration.Label
RadialGradient gradient: Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat
🧑‍💻 RenameButton
SafeAreaInset regions: SafeAreaRegions, spacing: CGFloat?, edge: Edge
🧑‍💻 SceneView
ScrollView contained view, axes: Axis.Set, showsIndicators: Bool
ScrollViewReader contained view
Section contained view, header view, footer view
SecureField label view, callOnCommit(), input: String, setInput(_: String)
ShareLink item, items, label view, message view, subject view, sharePreview
SharePreview title, image, icon
🧑‍💻 ShortcutsLink
Shape func path(in rect: CGRect) -> Path, inset: CGFloat, offset: CGSize, scale: (x: CGFloat, y: CGFloat, anchor: UnitPoint), rotation: (angle: Angle, anchor: UnitPoint), transform: CGAffineTransform, size: CGSize, strokeStyle: StrokeStyle, trim: (from: CGFloat, to: CGFloat), fillShapeStyle() -> ShapeStyle, fillStyle: FillStyle
Sheet dismiss()
SignInWithAppleButton labelType: SignInWithAppleButton.Label, tap(_: SignInOutcome)
🧑‍💻 SiriTipView
Slider label view, callOnEditingChanged(), value: Double, setValue(_: Double)
Spacer minLength: CGFloat?
🧑‍💻 SpriteView
Stepper label view, increment(), decrement(), callOnEditingChanged()
SubscriptionView
🧑‍💻 Table
TabView contained view
🧑‍💻 Table
Text string(locale: Locale) -> String, attributes: TextAttributes, attributedString: AttributedString, images: [Image]
TextEditor input: String, setInput(_: String)
TextField label view, prompt, callOnEditingChanged(), callOnCommit(), input: String, setInput(_: String)
🧑‍💻 TextFieldLink
TimelineView contentView(Context)
Toggle label view, tap(), isOn: Bool
ToggleStyleConfiguration.Label
ToolbarItem
TouchBar contained view, touchBarID: String
TupleView
🧑‍💻 VerifyIdentityWithWalletButton
VideoPlayer player: AVPlayer?, videoOverlay view
ViewThatFits
VSplitView contained view
VStack contained view, alignment: VerticalAlignment, spacing: CGFloat?
ZStack contained view, alignment: Alignment

(*) The following attributes are available directly for the Font and Image SwiftUI types, as opposed to the attributes available for wrapper views extracted from the hierarchy. In case you obtained an image view from the hierarchy using image() call, you'd need to additionally call actualImage: Image to get the genuine Image structure.

Property Wrappers

Status Modifier
🧑‍💻 @AccessibilityFocusState
🧑‍💻 @AppStorage
@Binding
@Environment
@EnvironmentObject
🧑‍💻 @FetchRequest
🧑‍💻 @FocusedBinding
🧑‍💻 @FocusedObject
🧑‍💻 @FocusedValue
🧑‍💻 @FocusState
🧑‍💻 @FocusedValue
@GestureState
🧑‍💻 @Namespace
🧑‍💻 @NSApplicationDelegateAdaptor
@ObservedObject
🧑‍💻 @ScaledMetric
🧑‍💻 @SceneStorage
🧑‍💻 @SectionedFetchRequest
@State
🧑‍💻 @StateObject
🧑‍💻 @UIApplicationDelegateAdaptor
🧑‍💻 @WKApplicationDelegateAdaptor
🧑‍💻 @WKExtensionDelegateAdaptor

Gestures

Status Modifier
AnyGesture
DragGesture
ExclusiveGesture
GestureStateGesture
LongPressGesture
MagnificationGesture
RotationGesture
SequenceGesture
SimultaneousGesture
SpatialTapGesture
TapGesture

View Modifiers

Custom View Modifiers

Status Modifier
func modifier<T>(T) -> ModifiedContent<Self, T>
🧑‍💻 func concat<T>(_ modifier: T) -> ModifiedContent<Self, T>

Inspecting Views

Status Modifier
func id<ID>(ID) -> some View
func equatable() -> EquatableView<Self>

Hiding and Disabling Views

Status Modifier
func hidden() -> some View
func disabled(Bool) -> some View

Sizing and Positioning a View

Status Modifier
func frame(...) -> some View
func fixedSize(...) -> some View
func layoutPriority(Double) -> some View
func position(...) -> some View
func offset(...) -> some View
func edgesIgnoringSafeArea(Edge.Set) -> some View
func coordinateSpace<T>(name: T) -> some View
🧑‍💻 func ignoresSafeArea(SafeAreaRegions, edges: Edge.Set) -> some View
🧑‍💻 func safeAreaInset(edge: VerticalEdge, alignment: HorizontalAlignment, spacing: CGFloat?, content: () -> V) -> some View
🧑‍💻 func alignmentGuide(...) -> some View
func padding(...) -> some View
🧑‍💻 func scenePadding(_ edges: Edge.Set) -> some View

Layering Views

Status Modifier
func overlay<Overlay>(Overlay, alignment: Alignment) -> some View
🧑‍💻 func overlay<S>(_ style: S, ignoresSafeAreaEdges edges: Edge.Set) -> some View
func background<Background>(Background, alignment: Alignment) -> some View
🧑‍💻 func background<S>(_ style: S, ignoresSafeAreaEdges: Edge.Set) -> some View
func zIndex(Double) -> some View
🧑‍💻 func badge(...) -> some View
func border<S>(S, width: CGFloat) -> some View

Masking and Clipping Views

Status Modifier
func clipped(antialiased: Bool) -> some View
func clipShape<S>(S, style: FillStyle) -> some View
func cornerRadius(CGFloat, antialiased: Bool) -> some View
func mask<Mask>(Mask) -> some View
🧑‍💻 func mask(alignment: Alignment = .center, mask: () -> Mask) -> some View
🧑‍💻 func containerShape<T>(_ shape: T) -> some View

Scaling Views

Status Modifier
func scaledToFill() -> some View
func scaledToFit() -> some View
func scaleEffect(...) -> some View
func aspectRatio(...) -> some View
func imageScale(Image.Scale) -> some View

Rotating and Transforming Views

Status Modifier
func rotationEffect(Angle, anchor: UnitPoint) -> some View
func rotation3DEffect(...) -> some View
func projectionEffect(ProjectionTransform) -> some View
func transformEffect(CGAffineTransform) -> some View
🧑‍💻 func dynamicTypeSize<T>(...) -> some View

Applying Graphical Effects to a View

Status Modifier
func blur(radius: CGFloat, opaque: Bool) -> some View
func opacity(Double) -> some View
func brightness(Double) -> some View
func contrast(Double) -> some View
func colorInvert() -> some View
func colorMultiply(Color) -> some View
func saturation(Double) -> some View
func grayscale(Double) -> some View
func hueRotation(Angle) -> some View
func luminanceToAlpha() -> some View
func shadow(color: Color, radius: CGFloat, x: CGFloat, y: CGFloat) -> some View

Compositing Views

Status Modifier
func blendMode(BlendMode) -> some View
🧑‍💻 func compositingGroup() -> some View
🧑‍💻 func drawingGroup(opaque: Bool, colorMode: ColorRenderingMode) -> some View

Adding Animations to a View

Status Modifier
🧑‍💻 func animation(Animation?) -> some View
🧑‍💻 func animation<V>(Animation?, value: V) -> some View
🧑‍💻 func animation(_ animation: Animation?) -> some ViewModifier
func transition(AnyTransition) -> some View
func transaction((inout Transaction) -> Void) -> some View
🧑‍💻 func transaction((inout Transaction) -> Void) -> some ViewModifier
🧑‍💻 func matchedGeometryEffect<ID>(id: ID, in: Namespace.ID, properties: MatchedGeometryProperties, anchor: UnitPoint, isSource: Bool) -> some View

Handling View Taps and Gestures

Status Modifier
func onTapGesture(count: Int, perform: () -> Void) -> some View
func onLongPressGesture(minimumDuration: Double, maximumDistance: CGFloat, pressing: ((Bool) -> Void)?, perform: () -> Void) -> some View
func gesture<T>(T, including: GestureMask) -> some View
func highPriorityGesture<T>(T, including: GestureMask) -> some View
func simultaneousGesture<T>(T, including: GestureMask) -> some View

Handling Application Life Cycle Events

Status Modifier
🧑‍💻 func userActivity<P>(String, element: P?, (P, NSUserActivity) -> ()) -> some View
🧑‍💻 func userActivity(String, isActive: Bool, (NSUserActivity) -> ()) -> some View
🧑‍💻 func onContinueUserActivity(String, perform: (NSUserActivity) -> ()) -> some View
🧑‍💻 func onOpenURL(perform: (URL) -> ()) -> some View
🧑‍💻 func widgetURL(URL?) -> some View
🧑‍💻 func handlesExternalEvents(preferring: Set<String>, allowing: Set<String>) -> some View

Handling View Events

Status Modifier
func onAppear(perform: (() -> Void)?) -> some View
func onDisappear(perform: (() -> Void)?) -> some View
func onCutCommand(perform: (() -> [NSItemProvider])?) -> some View
func onCopyCommand(perform: (() -> [NSItemProvider])?) -> some View
🧑‍💻 func onPasteCommand(...) -> some View
func onDeleteCommand(perform: (() -> Void)?) -> some View
func onMoveCommand(perform: ((MoveCommandDirection) -> Void)?) -> some View
func onExitCommand(perform: (() -> Void)?) -> some View
🧑‍💻 func onPlayPauseCommand(perform: (() -> Void)?) -> some View
🧑‍💻 func onCommand(Selector, perform: (() -> Void)?) -> some View
🧑‍💻 func onDrag(() -> NSItemProvider) -> some View
🧑‍💻 func onDrop(of: [UTType], ...) -> some View
🧑‍💻 func deleteDisabled(Bool) -> some View
🧑‍💻 func moveDisabled(Bool) -> some View

Handling Publisher Events

Status Modifier
func onReceive<P>(P, perform: (P.Output) -> Void) -> some View
func onChange<V>(of: V, perform: (V) -> Void) -> some View
func task(...) -> some View

Handling View Hover and Focus

Status Modifier
🧑‍💻 func hoverEffect(HoverEffect) -> some View
🧑‍💻 func onHover(perform: (Bool) -> Void) -> some View
🧑‍💻 func focusedValue<Value>(WritableKeyPath<FocusedValues, Value?>, Value) -> some View
🧑‍💻 func prefersDefaultFocus(Bool, in: Namespace.ID) -> some View
🧑‍💻 func focusScope(Namespace.ID) -> some View
🧑‍💻 func focusSection() -> some View
func focusable(Bool, onFocusChange: (Bool) -> Void) -> some View
🧑‍💻 func focusable(_ isFocusable: Bool) -> some View
🧑‍💻 func focused(...) -> some View
🧑‍💻 func focusedSceneValue<T>(_ keyPath: WritableKeyPath<FocusedValues, T?>, _ value: T) -> some View

Configuring a View for Hit Testing

Status Modifier
func allowsHitTesting(Bool) -> some View
func contentShape<S>(S, eoFill: Bool) -> some View
🧑‍💻 func contentShape<S>(_ kind: ContentShapeKinds, _ shape: S, eoFill: Bool) -> some View

Presenting system popup views

Status Modifier
func actionSheet(isPresented: Binding<Bool>, content: () -> ActionSheet) -> some View
func actionSheet<T>(item: Binding<T?>, content: (T) -> ActionSheet) -> some View
func sheet<Content>(isPresented: Binding<Bool>, onDismiss: (() -> Void)?, content: () -> Content) -> some View
func sheet<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)?, content: (Item) -> Content) -> some View
func fullScreenCover<Content>(isPresented: Binding<Bool>, onDismiss: (() -> Void)?, content: () -> Content) -> some View
func fullScreenCover<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)?, content: (Item) -> Content) -> some View
func alert(isPresented: Binding<Bool>, content: () -> Alert) -> some View
func alert<Item>(item: Binding<Item?>, content: (Item) -> Alert) -> some View
func popover<Content>(isPresented: Binding<Bool>, attachmentAnchor: PopoverAttachmentAnchor, arrowEdge: Edge, content: () -> Content) -> some View
func popover<Item, Content>(item: Binding<Item?>, attachmentAnchor: PopoverAttachmentAnchor, arrowEdge: Edge, content: (Item) -> Content) -> some View
func confirmationDialog<S, A, M>(_ title: S, isPresented: Binding<Bool>, titleVisibility: Visibility, @ViewBuilder actions: () -> A, @ViewBuilder message: () -> M) -> some View
🧑‍💻 func interactiveDismissDisabled(_ isDisabled: Bool) -> some View

Setting View Preferences

Status Modifier
🧑‍💻 func preference<K>(key: K.Type, value: K.Value) -> some View
🧑‍💻 func transformPreference<K>(K.Type, (inout K.Value) -> Void) -> some View
🧑‍💻 func anchorPreference<A, K>(key: K.Type, value: Anchor<A>.Source, transform: (Anchor<A>) -> K.Value) -> some View
🧑‍💻 func transformAnchorPreference<A, K>(key: K.Type, value: Anchor<A>.Source, transform: (inout K.Value, Anchor<A>) -> Void) -> some View
🧑‍💻 func onPreferenceChange<K>(K.Type, perform: (K.Value) -> Void) -> some View
func backgroundPreferenceValue<Key, T>(Key.Type, (Key.Value) -> T) -> some View
func overlayPreferenceValue<Key, T>(Key.Type, (Key.Value) -> T) -> some View

Setting the Environment Values of a View

Status Modifier
func environmentObject<B>(B) -> some View
🧑‍💻 func environment<V>(WritableKeyPath<EnvironmentValues, V>, V) -> some View
🧑‍💻 func transformEnvironment<V>(WritableKeyPath<EnvironmentValues, V>, transform: (inout V) -> Void) -> some View

Setting View Colors

Status Modifier
func foregroundColor(Color?) -> some View
func foregroundStyle(...) -> some View
func accentColor(Color?) -> some View
func tint(Color?) -> some View
func listItemTint(Color?) -> some View
🧑‍💻 func symbolRenderingMode(_ mode: SymbolRenderingMode?) -> some View
🧑‍💻 func symbolVariant(_ variant: SymbolVariants) -> some View
func colorScheme(ColorScheme) -> some View
func preferredColorScheme(ColorScheme?) -> some View

Text modifiers

Status Modifier
func foregroundColor(_ color: Color?) -> Text
func font(_ font: Font?) -> Text
func fontWeight(_ weight: Font.Weight?) -> Text
func bold() -> Text
func italic() -> Text
func strikethrough(_ active: Bool, color: Color?) -> Text
func underline(_ active: Bool, color: Color?) -> Text
func kerning(_ kerning: CGFloat) -> Text
func tracking(_ tracking: CGFloat) -> Text
func baselineOffset(_ baselineOffset: CGFloat) -> Text

Adjusting Text in a View

Status Modifier
func keyboardType(UIKeyboardType) -> some View
func font(Font?) -> some View
func lineLimit(Int?) -> some View
func lineSpacing(CGFloat) -> some View
func multilineTextAlignment(TextAlignment) -> some View
func minimumScaleFactor(CGFloat) -> some View
func truncationMode(Text.TruncationMode) -> some View
func allowsTightening(Bool) -> some View
func textContentType(UITextContentType?) -> some View
🧑‍💻 func textContentType(UITextContentType?) -> some View
🧑‍💻 func textCase(Text.Case?) -> some View
func flipsForRightToLeftLayoutDirection(Bool) -> some View
func autocapitalization(UITextAutocapitalizationType) -> some View
func disableAutocorrection(Bool?) -> some View
🧑‍💻 func monospacedDigit() -> some View
🧑‍💻 func textInputAutocapitalization(_ autocapitalization: TextInputAutocapitalization?) -> some View
🧑‍💻 func onSubmit(of triggers: SubmitTriggers, _ action: @escaping (() -> Void)) -> some View
🧑‍💻 func submitLabel(_ submitLabel: SubmitLabel) -> some View
🧑‍💻 func submitScope(_ isBlocking: Bool) -> some View
🧑‍💻 func textSelection<S>(_ selectability: S) -> some View

Redacting Content

Status Modifier
🧑‍💻 func redacted(reason: RedactionReasons) -> some View
🧑‍💻 func unredacted() -> some View
🧑‍💻 func privacySensitive(_ sensitive: Bool) -> some View

Configuring Control Attributes

Status Modifier
func labelsHidden() -> some View
func horizontalRadioGroupLayout() -> some View
func controlSize(ControlSize) -> some View

Styling Specific View Types

Status Modifier
func buttonStyle<S>(S) -> some View
func datePickerStyle<S>(S) -> some View
func groupBoxStyle<S>(S) -> some View
func indexViewStyle<S>(S) -> some View
func labelStyle<S>(S) -> some View
func listStyle<S>(S) -> some View
func menuButtonStyle<S>(S) -> some View
func menuStyle<S>(S) -> some View
func navigationViewStyle<S>(S) -> some View
func pickerStyle<S>(S) -> some View
🧑‍💻 func presentedWindowStyle<S>(S) -> some View
🧑‍💻 func presentedWindowToolbarStyle<S>(S) -> some View
func progressViewStyle<S>(S) -> some View
func tabViewStyle<S>(S) -> some View
func textFieldStyle<S>(S) -> some View
func toggleStyle<S>(S) -> some View
🧑‍💻 func controlGroupStyle<S>(S) -> some View
🧑‍💻 func gaugeStyle<S>(S) -> some View
🧑‍💻 func signInWithAppleButtonStyle(S) -> some View
🧑‍💻 func buttonBorderShape(_ shape: ButtonBorderShape) -> some View

Configuring a List View

Status Modifier
func listRowInsets(EdgeInsets?) -> some View
func listRowBackground<V>(V?) -> some View
🧑‍💻 func listRowPlatterColor(Color?) -> some View
func tag<V>(V) -> some View
🧑‍💻 func swipeActions<T>(edge: HorizontalEdge, allowsFullSwipe: Bool, content: () -> T) -> some View
🧑‍💻 func listRowSeparator(_ visibility: Visibility, edges: VerticalEdge.Set) -> some View
🧑‍💻 func listRowSeparatorTint(_ color: Color?, edges: VerticalEdge.Set) -> some View
🧑‍💻 func listSectionSeparator(_ visibility: Visibility, edges: VerticalEdge.Set) -> some View
🧑‍💻 func listSectionSeparatorTint(_ color: Color?, edges: VerticalEdge.Set) -> some View
🧑‍💻 func headerProminence(_ prominence: Prominence) -> some View
🧑‍💻 func refreshable(action: @Sendable () async -> Void) -> some View
🧑‍💻 func searchable(text: Binding<String>, placement: SearchFieldPlacement, prompt: LocalizedStringKey) -> some View
🧑‍💻 func searchCompletion(_ completion: String) -> some View

Configuring Navigation, Status and Tab Bars

Status Modifier
func navigationBarItems(...) -> some View
🧑‍💻 func navigationBarTitle(...) -> some View
🧑‍💻 func navigationTitle(...) -> some View
🧑‍💻 func navigationSubtitle(...) -> some View
🧑‍💻 func navigationBarTitleDisplayMode(NavigationBarItem.TitleDisplayMode) -> some View
func navigationBarHidden(Bool) -> some View
func navigationBarBackButtonHidden(Bool) -> some View
func toolbar<Content>(content: () -> Content) -> some View
func toolbar<Content>(content: () -> Content) -> some View
func toolbar<Content>(id: String, content: () -> Content) -> some View
func tabItem<V>(() -> V) -> some View
func statusBar(hidden: Bool) -> some View

Configuring Touch Bar Views

Status Modifier
func touchBar(...) -> some View
func touchBarItemPrincipal(Bool) -> some View
func touchBarCustomizationLabel(Text) -> some View
func touchBarItemPresence(TouchBarItemPresence) -> some View

Handling Keyboard Shortcuts

Status Modifier
🧑‍💻 func keyboardShortcut(KeyboardShortcut) -> some View
🧑‍💻 func keyboardShortcut(KeyEquivalent, modifiers: EventModifiers) -> some View

Configuring Context Menu Views

Status Modifier
🧑‍💻 func contextMenu(...) -> some View
🧑‍💻 func menuIndicator(_ visibility: Visibility) -> some View
func help(...) -> some View

Customizing Accessibility

Status Modifier
func accessibilityLabel(...) -> some View
func accessibilityValue(...) -> some View
func accessibilityHidden(Bool) -> some View
func accessibilityIdentifier(String) -> some View
func accessibilityHint(...) -> some View
func accessibilityActivationPoint(...) -> some View
func accessibilityAction(...) -> some View
🧑‍💻 func accessibilityAction<Label>(action: () -> Void, label: () -> Label) -> some View
🧑‍💻 func accessibilityAction<S>(named name: S, () -> Void) -> some View
func accessibilityAdjustableAction((AccessibilityAdjustmentDirection) -> Void) -> some View
func accessibilityScrollAction((Edge) -> Void) -> some View
func accessibilitySortPriority(Double) -> some View
🧑‍💻 func accessibilityIgnoresInvertColors(Bool) -> some View
🧑‍💻 func accessibilityLabeledPair<ID>(role: AccessibilityLabeledPairRole, id: ID, in: Namespace.ID) -> some View
🧑‍💻 func accessibilityChartDescriptor<R>(_ representable: R) -> some View
🧑‍💻 func accessibilityHeading(_ level: AccessibilityHeadingLevel) -> some View
🧑‍💻 func accessibilityTextContentType(_ textContentType: AccessibilityTextContentType) -> some View
🧑‍💻 func accessibilityCustomContent(...) -> some View
🧑‍💻 func accessibilityRepresentation<V>(representation: () -> V) -> some View
🧑‍💻 func accessibilityRespondsToUserInteraction(_ respondsToUserInteraction: Bool) -> some View
🧑‍💻 func accessibilityFocused(...) -> some View
🧑‍💻 func accessibilityRotor(...) -> some View
🧑‍💻 func accessibilityElement(children: AccessibilityChildBehavior) -> some View
🧑‍💻 func accessibilityChildren<V>(children: () -> V) -> some View
🧑‍💻 func accessibilityInputLabels(...) -> some View
🧑‍💻 func accessibilityAddTraits(AccessibilityTraits) -> some View
🧑‍💻 func accessibilityRemoveTraits(AccessibilityTraits) -> some View
🧑‍💻 func accessibilityLinkedGroup<ID>(id: ID, in: Namespace.ID) -> some View
🧑‍💻 func accessibilityShowsLargeContentViewer(...) -> some View
🧑‍💻 func speechAdjustedPitch(_ value: Double) -> some View
🧑‍💻 func speechAlwaysIncludesPunctuation(_ value: Bool) -> some View
🧑‍💻 func speechAnnouncementsQueued(_ value: Bool) -> some View
🧑‍💻 func speechSpellsOutCharacters(_ value: Bool) -> some View

Configuring View Previews

Status Modifier
func previewDevice(PreviewDevice?) -> some View
func previewDisplayName(String?) -> some View
func previewLayout(PreviewLayout) -> some View
🧑‍💻 func previewContext<C>(C) -> some View
🧑‍💻 func previewInterfaceOrientation(_ value: InterfaceOrientation) -> some View

Presenting File Management Interfaces

Status Modifier
🧑‍💻 func fileExporter(...) -> some View
🧑‍💻 func fileImporter(...) -> some View
🧑‍💻 func fileMover(...) -> some View
🧑‍💻 func exportsItemProviders(_ contentTypes: [UTType], onExport: @escaping () -> [NSItemProvider]) -> some View
🧑‍💻 func importsItemProviders(_ contentTypes: [UTType], onImport: @escaping ([NSItemProvider]) -> Bool) -> some View
🧑‍💻 func itemProvider(Optional<() -> NSItemProvider?>) -> some View
🧑‍💻 func defaultAppStorage(UserDefaults) -> some View

watchOS View Modifiers

Status Modifier
🧑‍💻 func complicationForeground() -> some View
🧑‍💻 func defaultWheelPickerItemHeight(_ height: CGFloat) -> some View
🧑‍💻 func pageCommand<V>(value: Binding<V>, in bounds: ClosedRange<V>, step: V) -> some View
🧑‍💻 func digitalCrownRotation<V>(_ binding: Binding<V>) -> some View

APIs from other Frameworks

Status Modifier
🧑‍💻 func appStoreOverlay(isPresented: Binding<Bool>, configuration: @escaping () -> SKOverlay.Configuration) -> some View
🧑‍💻 func manageSubscriptionsSheet(isPresented: Binding<Bool>) -> some View
🧑‍💻 func refundRequestSheet(for transactionID: UInt64, isPresented: Binding<Bool>, onDismiss: ...) -> some View
🧑‍💻 func quickLookPreview<Items>(_ selection: Binding<Items.Element?>, in items: Items) -> some View
🧑‍💻 func quickLookPreview(_ item: Binding<URL?>) -> some View
🧑‍💻 func signInWithAppleButtonStyle(_ style: SignInWithAppleButton.Style) -> some View
🧑‍💻 func musicSubscriptionOffer(isPresented: Binding<Bool>, options: ..., onLoadCompletion: ...) -> some View

Other UI entities

Status Modifier
🧑‍💻 Widget
🧑‍💻 Scene
🧑‍💻 DocumentGroup
🧑‍💻 Settings
🧑‍💻 WKNotificationScene
🧑‍💻 WindowGroup

WidgetConfiguration

Status Modifier
🧑‍💻 func configurationDisplayName(...) -> some WidgetConfiguration
🧑‍💻 func description(...) -> some WidgetConfiguration
🧑‍💻 func onBackgroundURLSessionEvents(...) -> some WidgetConfiguration
🧑‍💻 func supportedFamilies(_ families: [WidgetFamily]) -> some WidgetConfiguration