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

geometryGroup

Isolates the geometry (e.g. position and size) of the view from its parent view.

geometryGroup()

iOS 17+

Isolates the geometry (e.g. position and size) of the view from its parent view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Example

<VStack modifiers={[animation(Animation.spring(), isBusy)]}>
  {isBusy ? <Text>Working…</Text> : null}
  <Button label="Check now" modifiers={[geometryGroup()]} />
</VStack>

Works with

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

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt works on the child views that you give the component, and Spacer takes none.
DividerIt works on the child views that you give the component, and Divider takes none.
ButtonIt works on the child views that you give the component, and Button takes none.
ToggleIt works on the child views that you give the component, and Toggle takes none.
CheckboxIt works on the child views that you give the component, and Checkbox takes none.
SliderIt works on the child views that you give the component, and Slider takes none.
PickerIt works on the child views that you give the component, and Picker takes none.
DatePickerIt works on the child views that you give the component, and DatePicker takes none.
ColorPickerIt works on the child views that you give the component, and ColorPicker takes none.
LinkIt works on the child views that you give the component, and Link takes none.
MenuIt works on the child views that you give the component, and Menu takes none.
TextFieldIt works on the child views that you give the component, and TextField takes none.
SecureFieldIt works on the child views that you give the component, and SecureField takes none.
TextIt works on the child views that you give the component, and Text takes none.
LabelIt works on the child views that you give the component, and Label takes none.
ImageIt works on the child views that you give the component, and Image takes none.
ProgressViewIt works on the child views that you give the component, and ProgressView takes none.
GaugeIt works on the child views that you give the component, and Gauge takes none.
AccessoryWidgetBackgroundIt works on the child views that you give the component, and AccessoryWidgetBackground takes none.

Sources

The original Expo docs for this page:

On this page