delegate
The delegate object that receives the generated image and handles events from the view controller.
Declaration
@MainActor @objc @preconcurrency weak var delegate: (any ImagePlaygroundViewController.Delegate)?Discussion
Set the value of this property to a custom type you define. The view controller reports relevant interactions to your type using the methods of the ImagePlaygroundViewController.Delegate protocol. For example, the view controller notifies your delegate when the person accepts a generated image.