Contents

imagePlaygroundGenerationStyle(_:in:)

Sets the generation style for an image playground.

Declaration

nonisolated func imagePlaygroundGenerationStyle(_ style: ImagePlaygroundStyle, in allowedStyles: [ImagePlaygroundStyle] = ImagePlaygroundStyle.all) -> some View

Parameters

  • style:

    The generation style that the playground uses.

  • allowedStyles:

    The list of generation styles that the style input can have. Use ImagePlaygroundStyle.all to check the list of all possible styles, and pass a subset of those.

Return Value

An image playground sheet that uses one of the specified generation styles.