Interactive previews iPhone Apple TV

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.

CompactProductViewStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview

Platform Compatibility

iOS 17.0+ iPadOS 17.0+ macOS 14.0+ tvOS 17.0+

Tags

SwiftUI Code

Docs
ProductView(id: "auto_renewable_subscription_1", prefersPromotionalIcon: true)
    .productViewStyle(.compact)

Found an issue or have a suggestion?

Created: June 27, 2026Updated: July 12, 2026

More ProductView Components

View all
RegularProductViewStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

RegularProductViewStyle

A style for a product view that uses a standard, platform-appropriate layout.

LargeProductViewStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

LargeProductViewStyle

A style for a product view that’s suitable for layouts where the in-app purchase content is prominent.

Placeholder Icon Product View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Placeholder Icon Product View

Creates a view to load an individual product from the App Store, and merchandise it using its promotional image and a custom placeholder icon.

Custom Icon Product View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Custom Icon Product View

Creates a view to load an individual product from the App Store and merchandise it using a custom icon.

Product View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Product View

Creates a view to load and merchandise an individual product from the App Store.

Explore Other Components

Browse all
AccessoryCircularCapacityGaugeStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

AccessoryCircularCapacityGaugeStyle

A gauge style that displays a closed ring that’s partially filled in to indicate the gauge’s current value

SliderTickContentForEach - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

SliderTickContentForEach

A type of slider content that creates content by iterating over a collection.

TabsPickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

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.

ViewThatFits - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
initializer

ViewThatFits

A view that adapts to the available space by providing the first child view that fits.

Min Max Current Value Gauge - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Min Max Current Value Gauge

Creates a gauge showing a value within a range and describes the gauge’s current, minimum, and maximum values

Content Unavailable Search Text - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
type

Content Unavailable Search Text

A pre-built placeholder for empty search results with search text

Vertical Divider - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

Vertical Divider

A vertical visual element that can be used to separate other content

Context Menu Preview - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
modifier

Context Menu Preview

A context menu with custom preview