<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImagePlayground",
  "identifier" : "/documentation/ImagePlayground/ImagePlaygroundViewController/selectedGenerationStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "s:15ImagePlayground0aB14ViewControllerC23selectedGenerationStyleAA0abG0Vvp"
  },
  "title" : "selectedGenerationStyle"
}
-->

# selectedGenerationStyle

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

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)