Contents

init(thumbnail:title:subtitle:actionButtons:)

Creates a new details header with the specified content and action buttons.

Declaration

init(thumbnail: CPThumbnailImage, title: String?, subtitle: String?, actionButtons actionButton: [CPButton])

Parameters

  • thumbnail:

    The thumbnail image to display in the header. This image may include overlays, progress indicators, or other visual enhancements.

  • title:

    The primary title text to display. Pass nil to hide the title.

  • subtitle:

    The secondary subtitle text to display below the title. Pass nil to hide the subtitle.

  • actionButton:

    An array of CPButton objects representing user actions. The number of buttons is limited by maximumActionButtonCount. Additional buttons beyond the limit will be ignored.

Return Value

A newly initialized CPListTemplateDetailsHeader instance.

Discussion

The thumbnail parameter is required and should not be nil. The title and subtitle are optional but at least one should be provided for meaningful content display. Action buttons will be displayed in the order provided in the array.