CPListTemplateDetailsHeader
A header for list templates that displays rich media content with action buttons.
Declaration
@MainActor class CPListTemplateDetailsHeaderOverview
CPListTemplateDetailsHeader provides a prominent header section for list templates that includes a thumbnail image, title, subtitle, and configurable action buttons. This component is ideal for displaying media items, content details, or featured items at the top of a list template in CarPlay applications.
The header supports:
A thumbnail image with overlay and progress indicators
Primary title and subtitle text
Up to a maximum number of action buttons for user interaction
Automatic layout and styling appropriate for CarPlay interfaces
This class is designed specifically for CarPlay templates and follows CarPlay design guidelines for typography, spacing, and interaction patterns. The header automatically adapts to different screen sizes and orientations while maintaining optimal readability and touch target sizes.
Topics
Initializers
init(coder:)init(thumbnail:title:subtitle:actionButtons:)init(thumbnail:title:subtitle:bodyVariants:actionButtons:)