Custom Group Subscription Store View
Creates a SubscriptionStoreView with custom grouping.
Platform Compatibility
Tags
SwiftUI Code
SubscriptionStoreView(groupID: "457464AA") {
SubscriptionOptionGroup("Monthly") { product in
product.subscription?.subscriptionPeriod.unit == .month
}
SubscriptionOptionGroup("Yearly") { product in
product.subscription?.subscriptionPeriod.unit == .year
}
}Found an issue or have a suggestion?
More SubscriptionStoreView Components
View allCustom Header Subscription Store View
Creates a view that loads all the subscriptions in a subscription group from the App Store, and merchandises them with custom marketing content.
Upgrade Only Subscription Store View
Creates a view that loads all subscriptions from a subscription group but displays only the higher-level ones. In this case, the VIP Kitty Pass is already active, which is why only the higher-tier Royal Kitty Pass is displayed.
Group Subscription Store View
Creates a view that loads all subscriptions in a subscription group from the App Store, and merchandises them with automatic marketing content.
Single Subscription Store View
Creates a view that loads subscriptions based on a collection of product identifiers, and merchandises them with automatic marketing content.
Explore Other Components
Browse allUIKit Content Background colors
The UIKit colors that are also used in other components like in List and GroupBox
MenuPickerStyle
A picker style that presents the options as a menu when the user presses a button, or as a submenu when nested within a larger menu.
TabsPickerStyle
A picker style that presents options as segmented tabs. On macOS, this style produces a segmented picker with a visual treatment that distinguishes tab navigation from value selection. On iOS, tvOS, and visionOS, the visual appearance matches that of the standard standard .segmented style. On all supported platforms, VoiceOver announces options as tabs.
Navigation Subtitle
Configures the view’s subtitle for purposes of navigation, using a localized string
Message Item Alert
Presents an alert with a message using the given data to produce the alert’s content and a localized string key for a title.