Coder Social home page Coder Social logo

unsplashkit's People

Contributors

anabangueses avatar sergigracia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unsplashkit's Issues

Support

Is this framework supported?

Cannot add random images to an array of UIImage

What

I want to add 10 random images to an array of UIImages

Context

My goal is to put the images into a table view

Proposal

Attach your own proposal (if you have it). We'll discuss in on the issue to find the best one that fits into the library.

In addition, when I print the array count after adding it, it prints out 0. Why so?

Thank you.

screen shot 2016-12-31 at 1 59 47 pm

Unable to compile project

What

I get the following compile errors on file Source+Calls.swift
Cannot convert value of type '(Result<UnsplashImage, NSError>) -> Void' to expected argument type '(Result<(UnsplashImage, URLResponse), NSError>) -> ()'

Context

I create new project [(https://github.com/megimix/UnsplashWeatherApp)] and install your pod.

Support Swift Package MANAGER

What

The current project setup only supports CocoaPods. The purpose of this issue is supporting Swift Package Manager from the library.

Context

SPM is becoming popular and some projects are already using it. Giving support to it will make it easier for developers to integrate the library into their projects.

Proposal

  • Prepare a Swift script that creates symbolic links in a Sources folder.
  • Add the Package.swift.
  • Validate the package build.

References

  • RxSwift project has a script that creates the symbolic links. It could be a good reference.

"We couldn't find that photo"

This is more a question than an issue.

What

At random times, my query returns this placeholder image for no results, while no error is thrown.
simulator screen shot 15 nov 2016 15 53 53

Context

I use the UnsplashClient().randomPhoto(fromSearch: [searchTerm]) call with searchTerm being a name of a city entered by a user. The result of this call seems to always be .success.

Swift 4.0 support

What

Using cocoa pods, and adding UnsplashKit in my apps, when compiling the compiler is generating various build error.

Context

Simply create a new app using the current UnsplashKit from Cocoapod on Mac OS High Sierra... Try to build the app, and see compiler error.

See screenshot below for the issues reported

unsplashkit_swift4_error

typo in API authentication

current docs say that you authenticate like:

var token = "xxxx"
var client = UnsplashClient { request -> [String: String] in
    return [ "Authorization": "Bearer \(token)"]
}

this should be

var token = "xxxx"
var client = UnsplashClient { request -> [String: String] in
    return [ "Authorization": "Client-ID \(token)"]
}

not sure when this changed, but the using the Bearer format fails auth

Pod lint doesn't validate

It complains about the typealias for NSImage and UIImage and some CGSize in watchOS.

cc @sergigracia

You can push directly to CocoaPods with

bundle exec fastlane push

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.