Image playground

Asked on 03/04/2025

1 search

The "Image Playground" is a new feature introduced by Apple that allows developers to integrate image creation capabilities into their apps with ease. It provides a pre-built UI for users to create and embed images without the need to train a model or design safety guardrails. The model runs locally on the device, allowing users to create as many images as they want without incurring additional costs.

To integrate the Image Playground experience into your app, you can initialize an instance of the Image Playground view controller and assign its delegate. This setup allows your app to handle important lifecycle events, such as when image creation is finished or canceled. You can also provide initial concepts and source imagery to give users a starting point for their creations.

The Image Playground API is designed to be user-friendly and is hosted by the operating system, ensuring privacy and security. Only the final image chosen by the user is shared with your app, and there is no need for a permission prompt.

For more detailed information on how to implement this feature, you can refer to the session "What’s new in AppKit" and "What’s new in privacy" from WWDC 2024.