<!--
{
  "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/StoreButtonKind",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "StoreKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI0A10ButtonKindV"
  },
  "title" : "StoreButtonKind"
}
-->

# StoreButtonKind

A button to display in a store view or subscription store view.

```
struct StoreButtonKind
```

## Overview

Use the <doc://com.apple.documentation/documentation/SwiftUI/View/storeButton(_:for:)> modifier on a view to set the visibility of the buttons.

## Topics

### Getting button types for store views

[`cancellation`](/documentation/StoreKit/StoreButtonKind/cancellation)

A type of button that people use to dismiss the current store presentation.

[`restorePurchases`](/documentation/StoreKit/StoreButtonKind/restorePurchases)

A type of button that people use to restore purchases.

### Getting additional button types for subscription store views

[`signIn`](/documentation/StoreKit/StoreButtonKind/signIn)

A type of button that people use to sign in.

[`redeemCode`](/documentation/StoreKit/StoreButtonKind/redeemCode)

A type of button that people use to redeem an offer code.

[`policies`](/documentation/StoreKit/StoreButtonKind/policies)

A type of button that people use to display store policies.



---

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)