Contents

allowedGenerationStyles

A list of allowed generation styles to choose from in the playground.

Declaration

@MainActor @preconcurrency var allowedGenerationStyles: [ImagePlaygroundStyle] { get set }

Discussion

The selectedGenerationStyle is expected to be included in this list.

Use ImagePlaygroundStyle/all to check the list of all possible styles, and pass a subset of those.

See Also

Specifying the configuration of the playground