Skip to content

Simple image picker. This iOS swift SDK can pick image to your iOS swift project through gallery & camera.

License

Notifications You must be signed in to change notification settings

shuvokr/SwiftyImagePicker

Repository files navigation

SwiftyImagePicker


🧐 Project philosophy

Simple image picker.

This iOS swift SDK can pick image to your iOS swift project through gallery & camara.

Screen.Recording.2021-12-30.at.12.03.28.AM.mov

Features

Pick image from Gallery.

Pick image from Camara.

Requirements

Swift

iOS 9.0+

Installation

pod 'SwiftyImagePicker'

How To Use

pod install

Open SwiftyImagePicker.xcworkspace

Select terget: SwiftyImagePickerExample

SwiftyImagePicker Sample Video.mov

Update your info.plis by

KEY : NSCameraUsageDescription

Value : Use to camara access for take a selfi.

import UIKit
import SwiftyImagePicker

class ViewController: UIViewController {

    @IBOutlet weak var pickedImageView: UIImageView!
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }
    @IBAction func pickImageButtonAction(_ sender: UIButton) {
        let imagePik = SwiftyImagePicker()
        imagePik.pickImage(self) { image in
            DispatchQueue.main.async {
                // picked image : process your picked image here
                self.pickedImageView.image = image
            }
        }
    }
}

For MORE details please check the example project. Thanks...