<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/CompactProductViewStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "StoreKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:17_StoreKit_SwiftUI23CompactProductViewStyleV"
  },
  "title" : "CompactProductViewStyle"
}
-->

# CompactProductViewStyle

A style for a product view that’s suitable for layouts with less available space, or for displaying more items in a small amount of space.

```
@MainActor @preconcurrency struct CompactProductViewStyle
```

## Topics

### Getting the compact product view style

[`compact`](/documentation/StoreKit/ProductViewStyle/compact)

An product view style suitable for layouts where less space is available, or for displaying more items in a small amount of space.

### Creating the style

[`init()`](/documentation/StoreKit/CompactProductViewStyle/init())



---

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)