# appearance

> Live restyle (e.g.

Source: https://docs.tryyoursize.com/reference/ios/appearance-property/

*Property* · `TryYourSize (Swift)`

Live restyle (e.g. when your app switches theme); an open window updates at once.

```swift
public var appearance: Appearance
```

## Example

**Swift**

```swift
tys.appearance.colorPrimary = TYSColor(hex: "#3b2f26") // an open window restyles at once
```

**Kotlin**

```kotlin
tys.appearance = tys.appearance.copy(colorPrimary = 0xFF3B2F26.toInt())
```

**React Native**

```tsx
setAppearance({ variables: { colorPrimary: "#3b2f26" } });
```

**Flutter**

```dart
await tys.setAppearance(const Appearance(colorPrimary: Color(0xFF3B2F26)));
```

## See also

- [Appearance](https://docs.tryyoursize.com/reference/ios/appearance.md)
