Navigation Menu

Skip to content

anumothuR/HMImagePickerView

Repository files navigation

HMImagePickerView

CI Status Version License Platform

##HMImagePickerView

Screenshot

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 8 and above,
  • iOS 8 and above Swift 3

Installation

HMImagePickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "HMImagePickerView"

Usage

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.

  1. I have added some base code how we can use this component. Import the framework.
import HMImagePickerView
  1. 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!
  1. 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. 

Author

anumothuR, anumothu911@gmail.com

License

HMImagePickerView is available under the MIT license. See the LICENSE file for more info.