shoaib-akhtar / SBAImagePickerController

An easy multiple image picker controller for photo library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SBAImagePickerController

An easy multiple image picker controller for photo library.

CocoaPods

          

Installation

Use CocoaPods.

pod 'SBAImagePickerController'

Usage

Show SBAImagePickerController

    let controller = SBAMultipleImagePickerController.init(rootViewCOntroler: self,maximumImages: 5) {[weak self] (images, cancel) in
        guard let _ = self else{return}
        print(images?.count ?? 0)
     }
     controller.push()

Present SBAImagePickerController

   let coordinator = SBAMultipleImagePickerController.init(rootViewCOntroler: self,maximumImages: 5) {[weak self] (images, cancel) in
       guard let _ = self else{return}
       print(images?.count ?? 0)
    }
    coordinator.present()

Translate

    coordinator.translate {[weak self] (key) -> String in
         guard let _ = self else{return ""}
         return NSLocalizedString(key, comment: "")
    }

Congratulations! You're done.

License

SBAImagePickerController is under MIT. See LICENSE file for more info.

About

An easy multiple image picker controller for photo library.

License:MIT License


Languages

Language:Swift 98.4%Language:Ruby 1.6%