---
title: automatic
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/materialactiveappearance/automatic
---

# automatic

Materials will automatically appear active or inactive based on context and platform convention.

## Declaration

```swift
static let automatic: MaterialActiveAppearance
```

## Discussion

Discussion Examples of automatic behavior on macOS: Materials used as a window container background will appear inactive when the containing window is inactive. Material.bar materials will appear inactive when the containing window is inactive. All other materials will appear as active. Materials always appear as active on all other platforms.
