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

tint

Sets the tint color of a view.

tint(color)

ParameterTypeDescription
colorColorThe tint color (hex string). For example, #FF0000.

Sets the tint color of a view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

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

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt changes the accent colour of controls and SF Symbols, and Spacer shows neither.
DividerDivider does not use the tint colour.
TextIt changes the accent colour of controls and SF Symbols, and Text shows neither.
AccessoryWidgetBackgroundIt changes the accent colour of controls and SF Symbols, and AccessoryWidgetBackground shows neither.

Sources

The original Expo docs for this page:

  • tint (Modifiers) (source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)

On this page