One Logo Pool Ball
_StoreKit_SwiftUI · IOS API REFERENCE

SubscriptionStoreControlStyleConfiguration.Section

struct · iOS 18.0+ · SDK 27.1

struct Section

The properties of a section of subscription options within a subscription store control. Even if a subscription store instance doesn't specify explicit sections, there will always be at least one implicit section containing the options within the group. Implicit sections will always have nil for the header and footer views.

Members (8)

get · iOS 18.0+

id

TypeScript
get id(): SubscriptionStoreControlStyleConfiguration_Section_ID
Swift declaration
var id: SubscriptionStoreControlStyleConfiguration.Section.ID

The stable identity of the entity associated with this instance.

set · iOS 18.0+

id

TypeScript
set id(value: SubscriptionStoreControlStyleConfiguration_Section_ID)
Swift declaration
var id: SubscriptionStoreControlStyleConfiguration.Section.ID

The stable identity of the entity associated with this instance.

get · iOS 18.0+

footer

TypeScript
get footer(): (SubscriptionStoreControlStyleConfiguration_Section_Footer) | null
Swift declaration
var footer: SubscriptionStoreControlStyleConfiguration.Section.Footer?

A decorative footer view for this section, to be displayed after the options.

set · iOS 18.0+

footer

TypeScript
set footer(value: (SubscriptionStoreControlStyleConfiguration_Section_Footer) | null)
Swift declaration
var footer: SubscriptionStoreControlStyleConfiguration.Section.Footer?

A decorative footer view for this section, to be displayed after the options.

get · iOS 18.0+

header

TypeScript
get header(): (SubscriptionStoreControlStyleConfiguration_Section_Header) | null
Swift declaration
var header: SubscriptionStoreControlStyleConfiguration.Section.Header?

A decorative header view for this section, to be displayed before the options.

set · iOS 18.0+

header

TypeScript
set header(value: (SubscriptionStoreControlStyleConfiguration_Section_Header) | null)
Swift declaration
var header: SubscriptionStoreControlStyleConfiguration.Section.Header?

A decorative header view for this section, to be displayed before the options.

get · iOS 18.0+

options

TypeScript
get options(): Array<SubscriptionStoreControlStyleConfiguration_Option>
Swift declaration
var options: [SubscriptionStoreControlStyleConfiguration.Option]

The subscription options to merchandise within this section. Your subscription store control style should provide a means to subscribe to each option in the array. Use the properties of each option to declare your control style, and use the ``Option/subscribe()`` method in response to a subscribe interaction. Prefer to use ``SubscriptionOptionSection`` when creating a subscription store view to configure the visible subscription options within a section.

set · iOS 18.0+

options

TypeScript
set options(value: Array<SubscriptionStoreControlStyleConfiguration_Option>)
Swift declaration
var options: [SubscriptionStoreControlStyleConfiguration.Option]

The subscription options to merchandise within this section. Your subscription store control style should provide a means to subscribe to each option in the array. Use the properties of each option to declare your control style, and use the ``Option/subscribe()`` method in response to a subscribe interaction. Prefer to use ``SubscriptionOptionSection`` when creating a subscription store view to configure the visible subscription options within a section.

Skipped declarations

No declarations were skipped in this snapshot.

All _StoreKit_SwiftUI types →