modo-studio / unsplashkit Goto Github PK
View Code? Open in Web Editor NEWSwift client for Unsplash
License: MIT License
Swift client for Unsplash
License: MIT License
Is this framework supported?
I want to add 10 random images to an array of UIImages
My goal is to put the images into a table view
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.
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>) -> ()'
I create new project [(https://github.com/megimix/UnsplashWeatherApp)] and install your pod.
Our project only uses Swift Package Manager.
I think more developers will like it if we support Swift Package Manager.
Thank you.
The current project setup only supports CocoaPods. The purpose of this issue is supporting Swift Package Manager from the library.
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.
Sources
folder.Package.swift
.This is more a question than an issue.
At random times, my query returns this placeholder image for no results, while no error is thrown.
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
.
Using cocoa pods, and adding UnsplashKit in my apps, when compiling the compiler is generating various build error.
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.