Expo UI and Router for iOSExpo SDK 57 and later, iOS only
Modifiers

layoutPriority

Sets layout priority for the view.

layoutPriority(priority)

ParameterTypeDescription
prioritynumberLayout priority value.

Sets layout priority for the view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

You can add layoutPriority to any view. It changes what you see on 6 of the 39 components.

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
GroupIt has an effect only when the view shares an axis with other views in a stack.
DividerIt has an effect only when the view shares an axis with other views in a stack.
OverlayIt has an effect only when the view shares an axis with other views in a stack.
ScrollViewIt has an effect only when the view shares an axis with other views in a stack.
ButtonIt has an effect only when the view shares an axis with other views in a stack.
ToggleIt has an effect only when the view shares an axis with other views in a stack.
CheckboxIt has an effect only when the view shares an axis with other views in a stack.
SliderIt has an effect only when the view shares an axis with other views in a stack.
PickerIt has an effect only when the view shares an axis with other views in a stack.
DatePickerIt has an effect only when the view shares an axis with other views in a stack.
ColorPickerIt has an effect only when the view shares an axis with other views in a stack.
LinkIt has an effect only when the view shares an axis with other views in a stack.
ControlGroupIt has an effect only when the view shares an axis with other views in a stack.
MenuIt has an effect only when the view shares an axis with other views in a stack.
ContextMenuIt has an effect only when the view shares an axis with other views in a stack.
TextFieldIt has an effect only when the view shares an axis with other views in a stack.
SecureFieldIt has an effect only when the view shares an axis with other views in a stack.
TextIt has an effect only when the view shares an axis with other views in a stack.
LabelIt has an effect only when the view shares an axis with other views in a stack.
ImageIt has an effect only when the view shares an axis with other views in a stack.
ListIt has an effect only when the view shares an axis with other views in a stack.
FormIt has an effect only when the view shares an axis with other views in a stack.
SectionIt has an effect only when the view shares an axis with other views in a stack.
DisclosureGroupIt has an effect only when the view shares an axis with other views in a stack.
SwipeActionsIt has an effect only when the view shares an axis with other views in a stack.
BottomSheetIt has an effect only when the view shares an axis with other views in a stack.
AlertIt has an effect only when the view shares an axis with other views in a stack.
ConfirmationDialogIt has an effect only when the view shares an axis with other views in a stack.
PopoverIt has an effect only when the view shares an axis with other views in a stack.
ProgressViewIt has an effect only when the view shares an axis with other views in a stack.
GaugeIt has an effect only when the view shares an axis with other views in a stack.
TabViewIt has an effect only when the view shares an axis with other views in a stack.
AccessoryWidgetBackgroundIt has an effect only when the view shares an axis with other views in a stack.

Sources

The original Expo docs for this page:

On this page