An open API service indexing awesome lists of open source software.

https://github.com/ackeecz/ackimagepicker


https://github.com/ackeecz/ackimagepicker

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

![ackee|ACKImagePicker](Resources/cover-image.png)

![Build](https://github.com/AckeeCZ/ACKImagePicker/workflows/Build/badge.svg)
[![Version](https://img.shields.io/cocoapods/v/ACKImagePicker.svg?style=flat)](http://cocoapods.org/pods/ACKImagePicker)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License](https://img.shields.io/cocoapods/l/ACKImagePicker.svg?style=flat)](http://cocoapods.org/pods/ACKImagePicker)
[![Platform](https://img.shields.io/cocoapods/p/ACKImagePicker.svg?style=flat)](http://cocoapods.org/pods/ACKImagePicker)

ACKImagePicker lets users choose multiple photos from different albums in their media library with a native-like appearance.

## Installation

### CocoaPods

ACKImagePicker is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:

```ruby
pod "ACKImagePicker", "~> 0.4.0"
```

### Carthage

You can also use [Carthage](https://github.com/Carthage/Carthage). Specify this repo in your Cartfile:

```
github "AckeeCZ/ACKImagePicker" ~> 0.4.0
```

## Usage

Simply initalize `ACKImagePicker` and present it:
```swift
let controller = ACKImagePicker()
present(controller, animated: true)
```

To receive selected images, you can set `onImagesPicker` callback:
```swift
controller.onImagesPicked = { images in
showImagesInMyController()
// Dismiss `ACKImagePicker`
dismiss(animated: true)
}
```

You can also limit number of images that an user can select by setting:
```swift
controller.maximumNumberOfImages = 3
```

## Author

[Ackee](https://ackee.cz) team

## License

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

[1]: https://twitter.com/AckeeCZ