<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SubscriptionStoreControlStyle/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "StoreKit",
      "SwiftUI",
      "_StoreKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI012SubscriptionA12ControlStylePA2A09AutomaticeafG0VRszrlE9automaticAEvpZ"
  },
  "title" : "automatic"
}
-->

# automatic

A subscription store control style that resolves its appearance automatically, based on the current context.

```
@MainActor @preconcurrency static var automatic: AutomaticSubscriptionStoreControlStyle { get }
```

## Discussion

You can also use <doc://com.apple.documentation/documentation/SwiftUI/View/subscriptionStoreControlStyle(_:)> with [`automatic`](/documentation/StoreKit/SubscriptionStoreControlStyle/automatic) as the parameter to construct this style.

---

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)