To run the example project, clone the repo, and run pod install
from the Example directory first.
ImagePicker.show(type: .selectPhoto, with: .default) { (image, url) in
self.imageView.image = image
}
ImagePicker.show(type:.selectVideo, with: .default) { (image, url) in
self.imageView.image = image
self.videoUrl = url
}
ImagePicker.show(type:.selectePhotoAndVideo, with: .default) { (image, url) in
self.imageView.image = image
self.videoUrl = url
}
let options = ImagePickerOptions()
options.cameraDevice = .front
ImagePicker.show(type:.takePhoto, with: .default) { (image, url) in
self.imageView.image = image
self.videoUrl = url
}
ImagePicker.show(type:.recordVideo, with: .default) { (image, url) in
self.imageView.image = image
self.videoUrl = url
}
ImagePickerSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ImagePickerSwift'
winterrain5, 913419042@qq.com
ImagePickerSwift is available under the MIT license. See the LICENSE file for more info.