Skip to content

Instantly share code, notes, and snippets.

@prafullakumar
Created July 12, 2020 09:01
Show Gist options
  • Save prafullakumar/fbb5196e1d47aa31888cb98e4fa84525 to your computer and use it in GitHub Desktop.
Save prafullakumar/fbb5196e1d47aa31888cb98e4fa84525 to your computer and use it in GitHub Desktop.
struct PhotoPicker: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> PHPickerViewController {
//init PHPickerViewController here
}
func updateUIViewController(_ uiViewController: PHPickerViewController, context: Context) {
}
func makeCoordinator() -> Coordinator {
//set delegates with Coordinator
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment