All Projects → unsplash → Unsplash Photopicker Ios

unsplash / Unsplash Photopicker Ios

Licence: mit
📱An iOS photo picker to search and download photos from Unsplash.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Unsplash Photopicker Ios

Photoviewslider
📷 A simple photo browser for Android applications.
Stars: ✭ 78 (-63.38%)
Mutual labels:  photo-browser
Photato
Photato - The personal Pictures gallery
Stars: ✭ 130 (-38.97%)
Mutual labels:  photo-browser
Lantern
基于Swift的高可用视图框架
Stars: ✭ 181 (-15.02%)
Mutual labels:  photo-browser
Syphotobrowser
A cute and lightweight photo browser like Tweetbot3.
Stars: ✭ 81 (-61.97%)
Mutual labels:  photo-browser
Unsplash Js
🤖 A server-side JavaScript wrapper for the Unsplash API
Stars: ✭ 1,647 (+673.24%)
Mutual labels:  unsplash
Unsplash Wallpapers
🖼️ Unsplash cross-platform desktop application built with Electron, React and Redux
Stars: ✭ 159 (-25.35%)
Mutual labels:  unsplash
Unsplash Sketchplugin
Unsplash Data Provider plugin, for Sketch 52+
Stars: ✭ 71 (-66.67%)
Mutual labels:  unsplash
Myersplash.uwp
Yet anothor simple and elegant photos & wallpaper app for all platforms.
Stars: ✭ 207 (-2.82%)
Mutual labels:  unsplash
Quickwall
Set latest wallpapers from Unsplash from the commandline
Stars: ✭ 131 (-38.5%)
Mutual labels:  unsplash
Unsplashkit
Swift client for Unsplash
Stars: ✭ 183 (-14.08%)
Mutual labels:  unsplash
Myersplash.android
Yet anothor simple and elegant photos & wallpaper app for all platforms.
Stars: ✭ 84 (-60.56%)
Mutual labels:  unsplash
What The Splash
Tutorial for building an unsplash image gallery with redux saga :atom:
Stars: ✭ 107 (-49.77%)
Mutual labels:  unsplash
Lovedoudou
爱逗逗——集新闻资讯,影视评论,漂亮妹子,视频播放于一身的app,用于练习MVP+Retrofit+RxJava+Glide框架,如今将其开源,仅供学习探讨,禁止商用。
Stars: ✭ 165 (-22.54%)
Mutual labels:  photo-browser
Androidunplash
An unofficial Unsplash API library for Android
Stars: ✭ 80 (-62.44%)
Mutual labels:  unsplash
Skphotobrowser
Simple PhotoBrowser/Viewer inspired by facebook, twitter photo browsers written by swift
Stars: ✭ 2,285 (+972.77%)
Mutual labels:  photo-browser
Imageglass Preview
🏔 A modern, versatile image viewer (preview)
Stars: ✭ 72 (-66.2%)
Mutual labels:  photo-browser
Datasets
🎁 3,000,000+ Unsplash images made available for research and machine learning
Stars: ✭ 1,805 (+747.42%)
Mutual labels:  unsplash
Mvpapp
Android MVP Architecture
Stars: ✭ 2,354 (+1005.16%)
Mutual labels:  photo-browser
Unsplash rb
💎 Ruby wrapper for the Unsplash API.
Stars: ✭ 202 (-5.16%)
Mutual labels:  unsplash
Hexo Theme Random
A hexo theme with random fullscreen background image.
Stars: ✭ 179 (-15.96%)
Mutual labels:  unsplash

Unsplash Photo Picker for iOS

CocoaPods Compatible Carthage Compatible Platform License

UnsplashPhotoPicker is an iOS UI component that allows you to quickly search the Unsplash library for free high-quality photos with just a few lines of code.

Android photo picker here.

Unsplash Photo Picker for iOS preview

Table of Contents

Description

UnsplashPhotoPicker is a view controller. You present it to offer your users to select one or multiple photos from Unsplash. Once they have selected photos, the view controller returns UnsplashPhoto objects that you can use in your app.

Requirements

⚠️ UnsplashPhotoPicker is not compatible with Objective-C.

Installation

Carthage

To integrate UnsplashPhotoPicker into your Xcode project using Carthage, specify it in your Cartfile:

github "unsplash/unsplash-photopicker-ios" ~> 1.1.1

Run carthage update to build the framework and drag the built UnsplashPhotoPicker.framework into your Xcode project.

CocoaPods

To integrate UnsplashPhotoPicker into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'UnsplashPhotoPicker', '~> 1.1.1'
end

Then run pod install.

Git submodule

If you prefer not to use any of the aforementioned dependency managers, you can integrate UnsplashPhotoPicker into your project manually as a git submodule by running the following command in the project's folder:

$ git submodule add https://github.com/unsplash/unsplash-photopicker-ios.git

Drag the UnsplashPhotoPicker.xcodeproj file into your Xcode project, then drag the UnsplashPhotoPicker.framework to your target's "Embedded Binaries".

Usage

❗️Before you get started, you need to register as a developer on our Developer portal. Once registered, create a new app to get an Access Key and a Secret Key.

Configuration

The UnsplashPhotoPicker is configured with an instance of UnsplashPhotoPickerConfiguration:

UnsplashPhotoPickerConfiguration(accessKey: String,
                                 secretKey: String,
                                 query: String,
                                 allowsMultipleSelection: Bool,
                                 memoryCapacity: Int,
                                 diskCapacity: Int)
Property Type Optional/Required Default
accessKey String Required N/A
secretKey String Required N/A
query String Optional nil
allowsMultipleSelection Bool Optional false
memoryCapacity Int Optional 50
diskCapacity Int Optional 100

Presenting

UnsplashPhotoPicker is a subclass of UINavigationController. We recommend that you present it modally or as a popover on iPad. Before presenting it, you need to implement the UnsplashPhotoPickerDelegate protocol, and use the photoPickerDelegate property to get the results.

protocol UnsplashPhotoPickerDelegate: class {
  func unsplashPhotoPicker(_ photoPicker: UnsplashPhotoPicker, didSelectPhotos photos: [UnsplashPhoto])
  func unsplashPhotoPickerDidCancel(_ photoPicker: UnsplashPhotoPicker)
}

Using the results

UnsplashPhotoPicker returns an array of UnsplashPhoto objects. See UnsplashPhoto.swift for more details.

License

MIT License

Copyright (c) 2018-2019 Unsplash Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].