Latest 0.1.0
Homepage https://github.com/gemgemo/EasyImagePicker
License MIT
Platforms ios 10.0
Authors

CI Status
Version
License
Platform

Example

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

Requirements

Installation

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

pod 'EasyImagePicker'

Usage

class ViewController: UIViewController {

    private var imagePicker: ImagePicker?

    @IBOutlet private weak var imageView: UIImageView!

    internal override func viewDidLoad() {
        super.viewDidLoad()
        imagePicker = ImagePicker()
        imagePicker?.alertMessage = "from camera or library"
        imagePicker?.alertTitle = "pick image"
        imagePicker?.onCancel = {
            debugPrint("picking canceled by user!")
        }
        imagePicker?.onError = {
            debugPrint("error occurred!")
        }
        imagePicker?.onPickImage = { [weak self] (pickedIamge, picker) in
            self?.imageView.image = picker.resize(this: pickedIamge, by: CGSize(width: 200, height: 200)) //picker.reduce(this: pickedIamge, to: 0.20)//
        }
    }

    @IBAction private func pickImageOnClick(_ sender: UIButton) {
        imagePicker?.pickeImage()
    }

}

Author

Gamal, [email protected]

License

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

Latest podspec

{
    "name": "EasyImagePicker",
    "version": "0.1.0",
    "summary": "picking image quickly.",
    "description": "Sample swift class save time and effort when picking images.",
    "homepage": "https://github.com/gemgemo/EasyImagePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Gamal": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gemgemo/EasyImagePicker.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "EasyImagePicker/Classes/**/*",
    "pushed_with_swift_version": "echo u201c3.0u201d >> .swift-version"
}

Pin It on Pinterest

Share This