Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 589 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 589 Bytes

SUImagePickerView

Simple UIImagePickerController wrapper for SwiftUI

Usage:

  1. Download the repo
  2. Drag and drop SUImagePickerView.swift file in your project bundle
  3. Presenting camera: SUImagePickerView(sourceType: .camera , image: self.$image, isPresented: self.$shouldPresentImagePicker)
  4. Presenting photo library: SUImagePickerView(sourceType: .photoLibrary , image: self.$image, isPresented: self.$shouldPresentImagePicker)
  5. Check ContentView.swift file for how to present the image picker

Demo Video:

https://youtu.be/C20VuwZE8No

Thanks 👨🏻‍💻