<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ControlGroupStyle/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17ControlGroupStylePA2A09AutomaticcdE0VRszrlE9automaticAEvpZ"
  },
  "title" : "automatic"
}
-->

# automatic

The default control group style.

```
@MainActor @export(implementation) @preconcurrency static var automatic: AutomaticControlGroupStyle { get }
```

## Discussion

The default control group style can vary by platform. By default, both
platforms use a momentary segmented control style that’s appropriate for
the environment in which it is rendered.

You can override a control group’s style. To apply the default style to
a control group or to a view that contains a control group, use
the [`controlGroupStyle(_:)`](/documentation/SwiftUI/View/controlGroupStyle(_:)) modifier.

---

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)