53.5 Completing MyImagePicker
A few remaining tasks now need to be completed within the MyImagePicker.swift file. First, bindings to the two ContentView state properties need to be declared:
struct MyImagePicker: UIViewControllerRepresentable {
@Binding var imagePickerVisible: Bool
@Binding var selectedImage: Image?
.
.
Next, a coordinator needs to be implemented to act as the delegate for the UIImagePickerView instance. This will require that the coordinator class conform to both the UINavigationControllerDelegate and UIImagePickerControllerDelegate protocols. The coordinator will need to receive notification when an image is picked, or the user taps the cancel button so the imagePickerControllerDidCancel and didFinishPickingMediaWithInfo delegate methods will both need to be implemented.
In the case of the imagePickerControllerDidCancel method, the imagePickerVisible state property will need to be set...