Build a simple API search with Alamofire and SwiftyJSON

--

This article helps to design a UITableViewController with a SearchBar and populates results whenever we start typing and follows opening a SafariWebView on tapping on the search results.

Also, this article helps to understand how to use Alamofire with SwiftyJSON to hit an API and fetch some results, parse them, and show the results in an UITableViewController.

  1. Create a new project in Xcode

2. Go to the terminal and enter the project directory path and type pod init this creates podfile in our directory and then open this podfile from the project directory and following pods into it

platform :ios, '9.0'target 'WikiSearch' do
use_frameworks!
pod 'Alamofire', '~> 4.7'
pod 'SwiftyJSON', '~> 4.0'
end

This article is updated and moved to my website here ๐Ÿ˜ ๐Ÿ˜ ๐Ÿ˜

--

--

Muralidharan Kathiresan

Crafting beautiful apps to make peopleโ€™s life easier ๐Ÿ˜