<!--
{
  "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/allowedGenerationStyles",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "s:15ImagePlayground0aB14ViewControllerC23allowedGenerationStylesSayAA0aB5StyleVGvp"
  },
  "title" : "allowedGenerationStyles"
}
-->

# allowedGenerationStyles

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

```
@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.

---

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)