<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/MaterialActiveAppearance/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24MaterialActiveAppearanceV9automaticACvpZ"
  },
  "title" : "automatic"
}
-->

# automatic

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

```
static let automatic: MaterialActiveAppearance
```

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)