53.3 Wrapping the UIImagePickerController
With the project created, it is time to create a new SwiftUI View file to contain the wrapper that will make the UIPickerController available to SwiftUI. Create this file by right-clicking on the Shared folder item in the project navigator panel, selecting the New File… menu option and creating a new file named MyImagePicker using the SwiftUI View file template.
Once the file has been created, delete the current content and modify the file so that it reads as follows:
import SwiftUI
struct MyImagePicker: UIViewControllerRepresentable {
func makeUIViewController(context:
UIViewControllerRepresentableContext<MyImagePicker>) ->
UIImagePickerController ...