53.6 Completing the Content View
The final task before testing the app is to modify the Content View so that the two state properties are passed through to the MyImagePicker instance. Edit the ContentView.swift file and make the following modifications:
struct ContentView: View {
@State var imagePickerVisible: Bool = false
@State var selectedImage: Image? = Image(systemName: "photo")
var body: some View {
.
.
if (imagePickerVisible) {
MyImagePicker(imagePickerVisible:
$imagePickerVisible,
...