Latest 0.1.2
License The Unlicense
Platforms ios 10.0
Frameworks UIKit

A lightweight Swift wrapper the Unsplash It API.



Just drop the Unsplash.swift file into your project. That’s it!


CocoaPods is a dependency manager for Cocoa projects. To install Unsplash-iOS with CocoaPods:

  1. Make sure CocoaPods is installed.

  2. Update your Podfile to include the following:

    pod 'Unsplash-iOS'
  3. Run pod install.

  4. In your code import Unsplash like so:
    import Unsplash


let size = CGSize(width: 250.0, height: 250.0)
let filter = Unsplash.Filter(grayscale: true, blurred: true, direction: .west)
Unsplash.randomImage(at: size, with: filter) { image in
    guard let image = image else {

    imageView.image = image

:blue_heart: Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

:gift_heart: Contributing

Please create an issue with a description of your problem or open a pull request with a fix.

:v: License

See LICENSE for more information.

Latest podspec

    "name": "Unsplash",
    "version": "0.1.2",
    "summary": "A lightweight Swift wrapper the Unsplash It API.",
    "homepage": "",
    "license": {
        "type": "The Unlicense",
        "file": "LICENSE"
    "authors": {
        "Willow Bellemore": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.2"
    "social_media_url": "",
    "platforms": {
        "ios": "10.0"
    "source_files": "Unsplash.playground/Sources/*",
    "frameworks": "UIKit"

Pin It on Pinterest

Share This