
Model ClassĪdd a new file (Photo.swift) to act as a place holder for storing photo details. xcworkspace to add the functionality to the project. This should install the required libraries and create the necessary workspace. Alamofire for WebSerice call, SwiftJSON for parsing JSON data and Haneke for caching images.Īfter adiding the required libraries, type pod install on the terminal window. Edit the Podfile and add the following contentĪlamorfire, SwiftyJSON and Haneke are the thirdparty libraries that will be used in this project. Launch terminal window, navigate to the newly created project folder and create a file with name as Podfile. First make sure to install CocoaPods on your Mac. We will be using CocoaPods to install third party libraries. Project SetupĬreate a new project by selecting Single View Application template and selecting language as Swift.

You will need the API key to access the Flickr Photo Search API. Register your app in Flickr and get the API key details.

This also covers how to integrate 3rd party libaries using CocoaPods. In this tutorial we will see the steps required to write a demo app that retrieves photos from Flickr based on search text and display them in a UICollectionView.
