<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPaymentButtonStyle/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:@E@PKPaymentButtonStyle@PKPaymentButtonStyleAutomatic"
  },
  "title" : "PKPaymentButtonStyle.automatic"
}
-->

# PKPaymentButtonStyle.automatic

A button that automatically changes its appearance when the user switches between Light Mode and Dark Mode.

```
case automatic
```

## Discussion

The button uses the [`PKPaymentButtonStyle.white`](/documentation/PassKit/PKPaymentButtonStyle/white) style in Dark Mode and the [`PKPaymentButtonStyle.black`](/documentation/PassKit/PKPaymentButtonStyle/black) style in Light Mode.

---

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)