---
title: personalizationPolicy
framework: imageplayground
role: symbol
role_heading: Instance Property
path: imageplayground/imageplaygroundviewcontroller/personalizationpolicy
---

# personalizationPolicy

The policy to apply when determining whether to include people in generated images.

## Declaration

```swift
@MainActor @preconcurrency var personalizationPolicy: ImagePlaygroundPersonalizationPolicy { get set }
```

## Discussion

Discussion Personalization lets the view controller offer support for incorporating people into the images it generates. When enabled, the view controller allows someone to build images that include: A person from their Photos library A character represented by an appearance and a skin tone When enabled, the view controller offers a way to import an image of a person from the Photos library. It also supports choosing someone from a people picker, and by detecting names in any input text and using that information to find images. The default value of this property is ImagePlaygroundPersonalizationPolicy.automatic, which corresponds to ImagePlaygroundPersonalizationPolicy.enabled.

## See Also

### Specifying the configuration of the playground

- [selectedGenerationStyle](imageplayground/imageplaygroundviewcontroller/selectedgenerationstyle.md)
- [allowedGenerationStyles](imageplayground/imageplaygroundviewcontroller/allowedgenerationstyles.md)
- [ImagePlaygroundPersonalizationPolicy](imageplayground/imageplaygroundpersonalizationpolicy.md)
