Skip to content

About

A simple Flickr Search application written in Swift

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

SwiftFlickrSearch

This application is an example of searching the Flickr API for photos in Swift. Notably, it uses a UISearchDisplayController and the async callback pattern. See http://kyleclegg.com/blog/swift-flickr-search.

Search Screen Photo Screen

Getting Started

  • Clone the repo and run FlickrSearch.xcodeproj
  • No pod install or carthage update needed -- the only external library, SDWebImage, has been added to the project directly

The Flickr API

Images are retrieved by hitting the Flickr API.

{
    "farm": 8,
    "id": 15981410640,
    "isfamily": 0,
    "isfriend": 0,
    "ispublic": 1,
    "owner": "28339853@N03",
    "secret": "a0d5006167",
    "server": 7564,
    "title": "Chi shark week"
}

We use the farm, server, id, and secret to build the image path.

Other Notes

  • More details available at Swift Flickr Search
  • If you plan to build on this or use it a lot, I recommend replacing the Flickr API key with your own
  • Async pallback pattern in Swift credit goes to @szehnder

About

A simple Flickr Search application written in Swift

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages