<!--
{
  "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" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/subscriptionStorePolicyForegroundStyle(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP010_StoreKit_aB0E012subscriptionD21PolicyForegroundStyleyQrqd___qd_0_tAA05ShapeI0Rd__AaFRd_0_r0_lF"
  },
  "title" : "subscriptionStorePolicyForegroundStyle(_:_:)"
}
-->

# subscriptionStorePolicyForegroundStyle(_:_:)

Sets the primary and secondary style for the terms of service and privacy policy buttons within
a subscription store view.

```
nonisolated func subscriptionStorePolicyForegroundStyle(_ primary: some ShapeStyle, _ secondary: some ShapeStyle) -> some View
```

## Parameters

`primary`

The color or pattern to use for the terms of service and privacy policy
buttons

`secondary`

The color or pattern to use for the conjunction between the buttons
in the policy section

---

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)