Implementing Image Playground in your app
Image Playground is an Apple Intelligence feature that is available system-wide and allows you to generate images in three different styles based on a text description. The presently available styles are animation, illustration, and sketch, and processing is done entirely on the device to preserve the privacy of user data.
To learn more about implementing Image Playground in your app, see https://developer.apple.com/documentation/imageplayground.
You'll add the ability for the user to add either a photo or an AI Image in the Add New Journal Entry screen. To do this, you'll add a long press gesture recognizer instance to the image view in the New Entry Scene, and you'll add a method to create the AI image when the user long-presses the image view.
Follow these steps:
- In the Project navigator, click the Main storyboard file. Click New Entry Scene in the document outline.
- Click the Library...