<!--
{
  "availability" : [
    "iOS: 18.4.0 - 26.4.0",
    "iPadOS: 18.4.0 - 26.4.0",
    "macCatalyst: 18.4.0 - 26.4.0",
    "macOS: 15.4.0 - 26.4.0",
    "visionOS: 2.4.0 - 26.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/imagePlaygroundPersonalizationPolicy(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP15ImagePlaygroundE05imageE21PersonalizationPolicyyQrAD0degH0OF"
  },
  "title" : "imagePlaygroundPersonalizationPolicy(_:)"
}
-->

# imagePlaygroundPersonalizationPolicy(_:)

Policy determining whether to support the usage of people in the playground or not.

```
nonisolated func imagePlaygroundPersonalizationPolicy(_ policy: ImagePlaygroundPersonalizationPolicy = .automatic) -> some View
```

## Parameters

`policy`

Policy determining whether personalization is enabled or not.

## Return Value

An image playground sheet that does or does not support personalization, based on the `enabled` flag.

## Discussion

Enabling people support will allow the user to condition image generation using:

- A person from their system Photos library
- A character represented by an appearance and a skin tone

Personalization options are available through several user interfaces, including:

- A people picker
- Detection of people names in the prompt text field
- Importing images containing people faces from the system photo library

Enabled by default when the modifier is not set or when the policy is set to `automatic`.

---

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)