StoreContent
protocol · iOS 18.0+ · SDK 27.1
@MainActor @preconcurrency protocol StoreContentA type that represents the content of a store. You don't usually need to create custom types that conform to this protocol. For simple structures, it's sufficient to compose values of standard types like ``SubscriptionOptionGroup`` directly within the initializer of a ``SubscriptionStoreView``. If you require a more complex structure, you may find it useful to create reusable types which represent the content of a store. Similar to a SwiftUI view, conform your type to this `StoreContent` protocol, and implement the `body` property. Instead of a type conforming to `View`, the type of your `body` property should conform to `StoreContent`. Most of the time you can just spell the type of `body` as `some StoreContent`. You compose your first custom store content using standard content types from StoreKit, like ``SubscriptionOptionGroup``. Then, you can use your custom store content to initialize a ``SubscriptionStoreView``, or even as a component of another custom content type. When creating custom ``StoreContent``, you can use SwiftUI dynamic properties like `@Environment` and `@State`.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
9 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
StoreContent.storeButton(_:for:)
This protocol needs associated types that cannot yet cross the bridge.
StoreContent.subscriptionStoreControlStyle(_:placement:)
This declaration needs Swift generic type arguments. (no canonical witness for S)
StoreContent.subscriptionStoreControlBackground(_:)
This protocol needs associated types that cannot yet cross the bridge.
StoreContent.subscriptionStoreControlBackground(_:)
This protocol needs associated types that cannot yet cross the bridge.
StoreContent.subscriptionStorePickerItemBackground(_:)
This protocol needs associated types that cannot yet cross the bridge.
StoreContent.subscriptionStorePickerItemBackground(_:in:)
This protocol needs associated types that cannot yet cross the bridge.
StoreContent.subscriptionStoreOptionGroupStyle(_:)
This protocol needs associated types that cannot yet cross the bridge.
StoreContent.productDescription(_:)
This protocol needs associated types that cannot yet cross the bridge.
StoreContent.subscriptionStoreButtonLabel(_:)
This protocol needs associated types that cannot yet cross the bridge.