Get the Image from the gallery
- rpsoni321
- Jun 2, 2019
- 1 min read
Here is link of code to get the image from the camera and gallery.
https://github.com/rp9994/ARBasicUtility/blob/master/ARBasicUtility/ARUtilities/ARImageManager.swift
Import this file to your Project. And write below function any view controller and get image
ARImageManager.shared.showImagePicker { (result) in
switch result {
case .cancel:
print("cancel")
case .success(let image):
// You can use this image whenever you want to use
case .noPermission(let str):
print("No Permission", str)
}
}
nice quotes