---
title: selectedGenerationStyle
framework: imageplayground
role: symbol
role_heading: Instance Property
path: imageplayground/imageplaygroundviewcontroller/selectedgenerationstyle
---

# selectedGenerationStyle

Generation style to pre-select upong launching the playground among those in allowedGenerationStyles.

## Declaration

```swift
@MainActor @preconcurrency var selectedGenerationStyle: ImagePlaygroundStyle { get set }
```

## Discussion

Discussion Use ImagePlaygroundStyle.all to check the list of all possible styles, and pass one of those.

## See Also

### Specifying the configuration of the playground

- [allowedGenerationStyles](imageplayground/imageplaygroundviewcontroller/allowedgenerationstyles.md)
- [personalizationPolicy](imageplayground/imageplaygroundviewcontroller/personalizationpolicy.md)
- [ImagePlaygroundPersonalizationPolicy](imageplayground/imageplaygroundpersonalizationpolicy.md)
