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

imageScale

Scales SF Symbols within this view relative to the surrounding text, using one of the standard sizes.

imageScale(scale)

ParameterTypeDescription
scale'small' | 'medium' | 'large'The relative image scale.

Scales SF Symbols within this view relative to the surrounding text, using one of the standard sizes.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

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

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt changes only SF Symbols, and Spacer shows none.
DividerIt changes only SF Symbols, and Divider shows none.
ToggleIt changes only SF Symbols, and Toggle shows none.
CheckboxIt changes only SF Symbols, and Checkbox shows none.
SliderIt changes only SF Symbols, and Slider shows none.
PickerIt changes only SF Symbols, and Picker shows none.
DatePickerIt changes only SF Symbols, and DatePicker shows none.
ColorPickerIt changes only SF Symbols, and ColorPicker shows none.
TextFieldIt changes only SF Symbols, and TextField shows none.
SecureFieldIt changes only SF Symbols, and SecureField shows none.
TextIt changes only SF Symbols, and Text shows none.
ProgressViewIt changes only SF Symbols, and ProgressView shows none.
GaugeIt changes only SF Symbols, and Gauge shows none.
AccessoryWidgetBackgroundIt changes only SF Symbols, and AccessoryWidgetBackground shows none.

Sources

The original Expo docs for this page:

On this page