---
title: "#157: Collecting Photos with ImagePicker 📸"
url: https://littlebitesofcocoa.com/157-collecting-photos-with-imagepicker
author: Jake Marsh
published: 2015-12-29
topics: ["Libraries","Images"]
description: "We've covered using UIImagePickerController to allow users to capture photos or select them from their library in Bite #83."
---

# #157: Collecting Photos with ImagePicker 📸

By Jake Marsh, December 29, 2015. HTML: https://littlebitesofcocoa.com/157-collecting-photos-with-imagepicker

We've covered using **UIImagePickerController** to allow users to capture photos or select them from their library in [Bite #83](https://littlebitesofcocoa.com/83).

This is great for some situations, but often we'll want to offer our users a few more features and a little extra usability polish.

Today we'll look at a library called [ImagePicker](https://github.com/hyperoslo/ImagePicker) from [Hyper](https://github.com/hyperoslo). It's absolutely <i>packed</i> with features and has a super slick interface. Let's check it out:

<img src='https://media.littlebitesofcocoa.com/bite-assets/157-collecting-photos-with-imagepicker-preview.png' style='max-width: 438px;' />

_ImagePicker_ is incredibly simple to use, It's just a **view controller**:

``` swift
let imagePickerController = ImagePickerController()
imagePickerController.delegate = self

presentViewController(imagePickerController, animated: true, completion: nil)
```

We'll be notified via **delegate functions** as the user selects/takes photos:

``` swift
func doneButtonDidPress(images: [UIImage]) {
  // TODO: Process images
  dismissViewControllerAnimated(true, completion: nil)
}
```

We can customize colors, fonts, and even the text shown in labels using a handy [configuration struct](https://github.com/hyperoslo/ImagePicker/blob/master/Source/Configuration.swift) filled with static properties:

``` swift
Configuration.doneButtonTitle = "Upload"
```

More info about _ImagePicker_ can be found at [git.io/imagepicker](http://git.io/imagepicker)
