---
title: PKPaymentButtonStyle.automatic
framework: passkit
role: symbol
role_heading: Case
path: passkit/pkpaymentbuttonstyle/automatic
---

# PKPaymentButtonStyle.automatic

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

## Declaration

```swift
case automatic
```

## Discussion

Discussion The button uses the PKPaymentButtonStyle.white style in Dark Mode and the PKPaymentButtonStyle.black style in Light Mode.

## See Also

### Payment button styles

- [PKPaymentButtonStyle.white](passkit/pkpaymentbuttonstyle/white.md)
- [PKPaymentButtonStyle.whiteOutline](passkit/pkpaymentbuttonstyle/whiteoutline.md)
- [PKPaymentButtonStyle.black](passkit/pkpaymentbuttonstyle/black.md)
