Playbook Documentation Beta

Structure Playbook​Gallery

public struct PlaybookGallery: View

A view that displays scenarios manged by given Playbook instance with gallery-style appearance.

Conforms To

View

Initializers

init(name:​playbook:​pre​Snapshot​Count​Limit:​snapshot​Color​Scheme:​)

public init(name: String = "PLAYBOOK", playbook: Playbook = .default, preSnapshotCountLimit: Int = 100, snapshotColorScheme: ColorScheme = .light)

Creates a new view that displays scenarios managed by given Playbook instance.

Parameters

name String

A name of Playbook to be displayed on the user interface.

playbook Playbook

A Playbook instance that manages scenarios to be displayed.

pre​Snapshot​Count​Limit Int

The limit on the number of snapshot images for preview that can be generated before being displayed.

snapshot​Color​Scheme Color​Scheme

The color scheme of the snapshot image for preview.

Properties

body

var body: some View

Declares the content and behavior of this view.