##HMImagePickerView
To run the example project, clone the repo, and run pod install
from the Example directory first.
- Xcode 8 and above,
- iOS 8 and above Swift 3
HMImagePickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "HMImagePickerView"
Before using this component, We need to set two privacy settings in info.plist.
- Privacy - Photo Library Usage Description
- Privacy - Camera Usage Description
Kindly give the necessary message why we are need to use camara and photo library.
- I have added some base code how we can use this component. Import the framework.
import HMImagePickerView
- Add a UIView in you xib respective viewcontoller. Change the class name of the UIView to "AMImagePickerView". Create a reference in your view controller
@IBOutlet weak var chooseImageView: AMImagePickerView!
- Set the view controller, which one we need to present the camera or Photo Library.
chooseImageView.viewcontroller = self
Thats all!!!! here you go. Just run your app. :) See the magic.
anumothuR, anumothu911@gmail.com
HMImagePickerView is available under the MIT license. See the LICENSE file for more info.