An easy multiple image picker controller for photo library.
Use CocoaPods.
pod 'SBAImagePickerController'
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.
SBAImagePickerController is under MIT. See LICENSE file for more info.