Easily add Unsplash search into your iOS apps

Olivier Collet
Nov 28, 2018 · 2 min read
Image for post
Image for post

Two months ago, we shared our first open source component for iOS. As I explained then, our strategy for open source on mobile is to offer native UI components that can be easily integrated, rather than a standard API wrapper.

was the appetizer, now comes the main dish with .

Image for post
Image for post
UnsplashPhotoPicker for iOS

This new component allows applications to easily search and download photos from the Unsplash library. With just a few lines of code, applications can offer beautiful, high-quality photos to their users, opening up entirely new mobile use cases.

Some examples:

  • Let’s say you’re a blogging platform that want to allow its users to insert photos from Unsplash into their blog posts, this component will make your life easy. (Medium 😉)
  • Or you could be a project management tool that offers its users to change the background for their projects. (Trello 😉)
  • Oh! You’re a service that helps people build their website, how about offering them to use high-quality photos from Unsplash on their homepage? (Squarespace 😉)
  • Or maybe you’re an app that specializes in making presentations, and want your users to insert beautiful photography to their amazing decks? We have you covered. (Apple 😉)

Before you can use it, you need to get Unsplash API access and secret keys. Visit our Unsplash API page to register as a developer for more information.

is a subclass of and is configured very easily:

To retrieve the selected photo, you implement the protocol:

That’s it!

You can use a few more options to configure the photo picker. And take a look at UnsplashPhoto.swift to see the information that is returned.

You can find the project on Github: https://github.com/unsplash/unsplash-photopicker-ios


If you have any feedback or question, don’t hesitate to send an email at apps@unsplash.com.

And let us know if you use it in a project. Android equivalent coming soon.

Unsplash Blog

Behind the scenes building the open photography movement at…

Thanks to Luke Chesser

Olivier Collet

Written by

In charge of native apps @ Unsplash. Sometimes I write.

Unsplash Blog

Behind the scenes building the open photography movement at Unsplash.

Olivier Collet

Written by

In charge of native apps @ Unsplash. Sometimes I write.

Unsplash Blog

Behind the scenes building the open photography movement at Unsplash.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store