---
title: allowedGenerationStyles
framework: imageplayground
role: symbol
role_heading: Instance Property
path: imageplayground/imageplaygroundviewcontroller/allowedgenerationstyles
---

# allowedGenerationStyles

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

## Declaration

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

## Discussion

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

- [selectedGenerationStyle](imageplayground/imageplaygroundviewcontroller/selectedgenerationstyle.md)
- [personalizationPolicy](imageplayground/imageplaygroundviewcontroller/personalizationpolicy.md)
- [ImagePlaygroundPersonalizationPolicy](imageplayground/imageplaygroundpersonalizationpolicy.md)
