Structure
PlaybookGallery
public struct PlaybookGallery: View
A view that displays scenarios manged by given Playbook
instance with
gallery-style appearance.
Relationships
Conforms To
View
Initializers
init(name:playbook:preSnapshotCountLimit:snapshotColorScheme:)
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 | Type | Description |
---|---|---|
name | String |
A name of |
playbook | Playbook |
A |
preSnapshotCountLimit | Int |
The limit on the number of snapshot images for preview that can be generated before being displayed. |
snapshotColorScheme | ColorScheme |
The color scheme of the snapshot image for preview. |
Properties
body
@ViewBuilder
public var body: some View
Declares the content and behavior of this view.