Latest 0.1.0
Homepage https://github.com/istx25/Unsplash-iOS
License MIT
Platforms ios 10.0
Frameworks UIKit
Authors

A lightweight Swift wrapper the Unsplash It API.

Installation

Manual

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

CocoaPods

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:

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

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

Usage

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 {
        return
    }

    imageView.image = image
}

License

Unsplash-iOS is licensed under The Unlicense license license. Check it the license.

Latest podspec

{
    "name": "Unsplash-iOS",
    "version": "0.1.0",
    "summary": "A lightweight Swift wrapper the Unsplash It API.",
    "homepage": "https://github.com/istx25/Unsplash-iOS",
    "license": {
        "type": "MIT",
        "file": "LICENCE.txt"
    },
    "authors": {
        "Willow Bellemore": "[email protected]"
    },
    "source": {
        "git": "https://github.com/istx25/Unsplash-iOS.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/istx25",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "Unsplash-iOS.playground/Sources/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This