SwiftUI React Nativev6.3.3
  • Values
  • Runtime
  • Overview

Appearance

  • background
  • badge
  • badgeProminence
  • border
  • buttonSizing
  • containerBackground
  • headerProminence
  • hidden
  • imageScale
  • labelIconToTitleSpacing
  • labelReservedIconWidth
  • labelsHidden
  • labelsVisibility
  • opacity
  • overlay
  • overlayArrangementEdge
  • preferredColorScheme
  • privacySensitive
  • redacted
  • scaledToFill
  • scaledToFit
  • scrollContentBackground
  • shadow
  • sliderThumbVisibility
  • tint
  • unredacted
  • zIndex

Text and symbols

  • allowsTightening
  • autocorrectionDisabled
  • baselineOffset
  • bold
  • findDisabled
  • findNavigator
  • font
  • fontDesign
  • fontWeight
  • fontWidth
  • interactionActivityTrackingTag
  • italic
  • kerning
  • keyboardType
  • lineHeight
  • lineLimit
  • lineSpacing
  • minimumScaleFactor
  • monospaced
  • monospacedDigit
  • multilineTextAlignment
  • replaceDisabled
  • strikethrough
  • submitLabel
  • submitScope
  • symbolColorRenderingMode
  • symbolEffectsRemoved
  • symbolRenderingMode
  • symbolVariableValueMode
  • symbolVariant
  • textCase
  • textContentType
  • textInputAutocapitalization
  • textInputFormattingControlVisibility
  • textScale
  • textSelection
  • textSelectionAffinity
  • tracking
  • truncationMode
  • typesettingLanguage
  • underline
  • writingDirection
  • writingToolsAffordanceVisibility
  • writingToolsBehavior

Layout

  • alignmentGuide
  • aspectRatio
  • containerCornerOffset
  • containerRelativeFrame
  • controlSize
  • defaultScrollAnchor
  • dynamicTypeSize
  • fixedSize
  • flipsForRightToLeftLayoutDirection
  • frame
  • geometryGroup
  • gridCellAnchor
  • gridCellColumns
  • gridCellUnsizedAxes
  • gridColumnAlignment
  • ignoresSafeArea
  • layoutDirectionBehavior
  • layoutPriority
  • layoutValue
  • offset
  • padding
  • position
  • reorderContainer
  • safeAreaBar
  • safeAreaInset
  • safeAreaPadding
  • scenePadding
  • scrollBounceBehavior
  • scrollIndicators
  • scrollIndicatorsFlash
  • scrollPosition
  • scrollTargetBehavior
  • scrollTargetLayout

Styles

  • arrangementViewStyle
  • backgroundStyle
  • buttonStyle
  • controlGroupStyle
  • datePickerStyle
  • disclosureGroupStyle
  • foregroundStyle
  • formStyle
  • gaugeStyle
  • groupBoxStyle
  • indexViewStyle
  • labeledContentStyle
  • labelStyle
  • listStyle
  • menuStyle
  • navigationSplitViewStyle
  • pickerStyle
  • progressViewStyle
  • scrollEdgeEffectStyle
  • tableStyle
  • tabViewStyle
  • textEditorStyle
  • textFieldStyle
  • toggleStyle

Visual effects

  • allowedDynamicRange
  • backgroundExtensionEffect
  • blur
  • brightness
  • clipped
  • colorEffect
  • colorInvert
  • colorMultiply
  • compositingGroup
  • contrast
  • distortionEffect
  • drawingGroup
  • glassEffect
  • glassEffectID
  • glassEffectUnion
  • grayscale
  • hueRotation
  • layerEffect
  • luminanceToAlpha
  • mask
  • projectionEffect
  • rotation3DEffect
  • rotationEffect
  • saturation
  • scaleEffect
  • scrollEdgeEffectHidden
  • transformEffect
  • visualEffect

Animation

  • animation
  • contentTransition
  • glassEffectTransition
  • keyframeAnimator
  • matchedGeometryEffect
  • matchedTransitionSource
  • phaseAnimator
  • scrollTransition
  • springLoadingBehavior
  • transition

Events and lifecycle

  • onAppear
  • onChange
  • onContinueUserActivity
  • onContinuousHover
  • onDisappear
  • onDrag
  • onDragSessionUpdated
  • onDrop
  • onDropSessionUpdated
  • onGeometryChange
  • onHingeChange
  • onHover
  • onInteractiveResizeChange
  • onKeyPress
  • onLongPressGesture
  • onOpenURL
  • onPencilDoubleTap
  • onPencilSqueeze
  • onPreferenceChange
  • onReceive
  • onScrollGeometryChange
  • onScrollPhaseChange
  • onScrollTargetVisibilityChange
  • onScrollVisibilityChange
  • onSubmit
  • onTapGesture
  • task

Gestures and input

  • defaultHoverEffect
  • defersSystemGestures
  • dragConfiguration
  • dragContainer
  • dragContainerSelection
  • gesture
  • handGestureShortcut
  • highPriorityGesture
  • hoverEffect
  • hoverEffectDisabled
  • presentationDragIndicator
  • simultaneousGesture

Input and interaction

  • allowsHitTesting
  • allowsWindowActivationEvents
  • buttonRepeatBehavior
  • disabled
  • handlesExternalEvents
  • help
  • invalidatableContent
  • keyboardShortcut
  • scrollClipDisabled
  • scrollDisabled
  • scrollDismissesKeyboard
  • sensoryFeedback
  • userActivity

Focus

  • defaultFocus
  • focusable
  • focused
  • focusEffectDisabled
  • searchFocused

Lists and tables

  • deleteDisabled
  • listItemTint
  • listRowBackground
  • listRowInsets
  • listRowSeparator
  • listRowSeparatorTint
  • listRowSpacing
  • listSectionIndexVisibility
  • listSectionMargins
  • listSectionSeparator
  • listSectionSeparatorTint
  • listSectionSpacing
  • moveDisabled
  • paletteSelectionEffect
  • refreshable
  • sectionActions
  • sectionIndexLabel
  • selectionDisabled
  • swipeActions
  • swipeActionsContainer
  • tableColumnHeaders

Navigation

  • assistiveAccessNavigationIcon
  • asyncImageURLSession
  • contentToolbar
  • defaultAdaptableTabBarPlacement
  • defaultTabBarPlacement
  • navigationBarBackButtonHidden
  • navigationBarTitleDisplayMode
  • navigationDestination
  • navigationDocument
  • navigationLinkIndicatorVisibility
  • navigationSplitViewColumnWidth
  • navigationSubtitle
  • navigationTitle
  • navigationTransition
  • searchable
  • searchCompletion
  • searchDictationBehavior
  • searchPresentationToolbarBehavior
  • searchScopes
  • searchSuggestions
  • searchToolbarBehavior
  • splitArrangementFixedLayoutSize
  • splitArrangementLayoutRatio
  • splitArrangementLayoutSize
  • tabBarMinimizeBehavior
  • tabViewBottomAccessory
  • tabViewCustomization
  • tabViewSearchActivation
  • tabViewSidebarBottomBar
  • tabViewSidebarFooter
  • tabViewSidebarHeader
  • toolbar
  • toolbarBackground
  • toolbarBackgroundVisibility
  • toolbarColorScheme
  • toolbarMinimizationBehavior
  • toolbarMinimizationRestoration
  • toolbarMinimizationSafeAreaAdjustment
  • toolbarOverflowMenu
  • toolbarRole
  • toolbarTitleAlignment
  • toolbarTitleDisplayMode
  • toolbarTitleMenu
  • toolbarVerticalBehavior
  • toolbarVerticalCompressionBehavior
  • toolbarVisibility
  • windowToolbarFullScreenVisibility

Presentation

  • alert
  • confirmationDialog
  • contextMenu
  • dialogIcon
  • dialogSuppressionToggle
  • dismissalConfirmationDialog
  • documentBrowserContextMenu
  • fileDialogBrowserOptions
  • fileDialogConfirmationLabel
  • fileDialogCustomizationID
  • fileDialogDefaultDirectory
  • fileDialogImportsUnresolvedAliases
  • fileDialogMessage
  • fullScreenCover
  • inspector
  • inspectorColumnWidth
  • interactiveDismissDisabled
  • menuActionDismissBehavior
  • menuIndicator
  • menuOrder
  • popover
  • presentationBackground
  • presentationBackgroundInteraction
  • presentationCompactAdaptation
  • presentationContentInteraction
  • presentationCornerRadius
  • presentationDetents
  • presentationPlacement
  • presentationSizing
  • sheet

Drag and drop

  • copyable
  • cuttable
  • documentLaunchSubtitle
  • documentLaunchTitle
  • draggable
  • dropConfiguration
  • dropDestination
  • fileExporter
  • fileExporterFilenameLabel
  • fileImporter
  • fileMover
  • itemProvider
  • pasteDestination

Drawing and shapes

  • blendMode
  • buttonBorderShape
  • clipShape
  • containerShape
  • contentShape
  • coordinateSpace
  • materialActiveAppearance
  • textInputBorderShape

Accessibility

  • accessibilityAction
  • accessibilityActions
  • accessibilityActivationPoint
  • accessibilityAddTraits
  • accessibilityAdjustableAction
  • accessibilityChildren
  • accessibilityCustomContent
  • accessibilityDefaultFocus
  • accessibilityDirectTouch
  • accessibilityDragPoint
  • accessibilityDropPoint
  • accessibilityElement
  • accessibilityFocused
  • accessibilityHeading
  • accessibilityHidden
  • accessibilityHint
  • accessibilityIdentifier
  • accessibilityIgnoresInvertColors
  • accessibilityInputLabels
  • accessibilityLabel
  • accessibilityLabeledPair
  • accessibilityLinkedGroup
  • accessibilityRemoveTraits
  • accessibilityRepresentation
  • accessibilityRespondsToUserInteraction
  • accessibilityRotor
  • accessibilityRotorEntry
  • accessibilityScrollAction
  • accessibilityScrollStatus
  • accessibilityShowsLargeContentViewer
  • accessibilitySortPriority
  • accessibilityTextContentType
  • accessibilityValue
  • accessibilityZoomAction
  • speechAdjustedPitch
  • speechAlwaysIncludesPunctuation
  • speechAnnouncementsQueued
  • speechSpellsOutCharacters

State and environment

  • defaultAppStorage
  • environment
  • transaction
  • transformEnvironment

Preferences

  • backgroundPreferenceValue
  • overlayPreferenceValue
  • preference
  • transformPreference

Other modifiers

  • contentMargins
  • id
  • modifier
  • persistentSystemOverlays
  • renameAction
  • tag
  • typeSelectEquivalent

Color modifiers

  • exposureAdjust
  • headroom
  • mix
  • opacity

DynamicViewContent modifiers

  • dropDestination
  • onDelete
  • onMove
  • reorderable

Image modifiers

  • allowedDynamicRange
  • antialiased
  • interpolation
  • renderingMode
  • resizable
  • symbolColorRenderingMode
  • symbolRenderingMode
  • symbolVariableValueMode

InsettableShape modifiers

  • inset
  • strokeBorder

Shape modifiers

  • fill
  • intersection
  • lineIntersection
  • lineSubtraction
  • offset
  • path
  • rotation
  • scale
  • size
  • stroke
  • subtracting
  • symmetricDifference
  • transform
  • trim
  • union

ShapeView modifiers

  • fill
  • stroke
  • strokeBorder

Text modifiers

  • accessibilityHeading
  • accessibilityLabel
  • accessibilityTextContentType
  • baselineOffset
  • bold
  • font
  • fontDesign
  • fontWeight
  • fontWidth
  • foregroundStyle
  • italic
  • kerning
  • monospaced
  • monospacedDigit
  • speechAdjustedPitch
  • speechAlwaysIncludesPunctuation
  • speechAnnouncementsQueued
  • speechSpellsOutCharacters
  • strikethrough
  • textScale
  • textVariant
  • tracking
  • typesettingLanguage
  • underline
ModifiersText and symbols

baselineOffset

Sets the vertical offset for the text relative to its baseline in this view.

View ModifieriOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+baselineOffset(_:) in SwiftUI

Declaration#

React
compose().baselineOffset(baselineOffset: number)
Swift
nonisolated func baselineOffset(_ baselineOffset: CGFloat) -> some View

Parameters

  • baselineOffset*number

    The amount to shift the text vertically (up or down) relative to its baseline.

Return value

A view where text is above or below its baseline.

See also#

More in Text and symbols.

  • allowsTighteningSets whether text in this view can compress the space between characters when necessary to fit text in a line.
  • autocorrectionDisabledSets whether to disable autocorrection for this view.
  • boldApplies a bold font weight to the text in this view.
  • findDisabledPrevents find and replace operations in a text editor.
  • findNavigatorProgrammatically presents the find and replace interface for text editor views.
  • fontSets the default font for text in this view.
  • fontDesignSets the font design of the text in this view.
  • fontWeightSets the font weight of the text in this view.
  • fontWidthSets the font width of the text in this view.
  • interactionActivityTrackingTagSets a tag that you use for tracking interactivity.
  • italicApplies italics to the text in this view.
  • kerningSets the spacing, or kerning, between characters for the text in this view.
PreviousautocorrectionDisabledNextbold

On this page

0%
  • Declaration
  • See also
Report an issue