Skip to content

Swift 3 + iOS 10 example app demonstrating use of Alamofire, SwiftyJSON and AVFoundation to fetch 30 second preview songs from Spotify using Spotify API.

Notifications You must be signed in to change notification settings

cdesai/alamotable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlamoSpot

You will be able to create an app called 'AlamoTable' using Swift 3 and iOS 10 to demonstrate use of Alamofire, SwiftyJSON and AVFoundation to fetch 30 second preview songs from Spotify using Spotify API.

You will need following Pods to be added:

  • Alamofire
  • SwiftyJSON

How to run this project:

  1. Download or clone repo.
  2. Run pod init to install all pods.
  3. Open AlamoTable.xcworkspace.
  4. Run the app in simulator or device

This demo app covers following concepts:

  • Table View Controllers
  • UIImage, UILabel, UISearchBar
  • Use custom TableViewCell
  • Use blurred background
  • Creating a custom type
  • Passing data between segue
  • Search tracks on Spotify using Search Bar
  • Creating GET request using Alamofire based on search keyword
  • Parsing JSON using SwiftyJSON
  • Creating a download task to download song from URL
  • Playing an Audio Track using AVFoundation
  • Adding Play/Pause functionality

Please feel free to comment and suggest on quality of the code and any flaws.

Thank you and hope you will find it useful.

Screenshots

This is how the final app will look like.

AlamoTable - Home Screen

AlamoTable - Play Track Screen

About

Swift 3 + iOS 10 example app demonstrating use of Alamofire, SwiftyJSON and AVFoundation to fetch 30 second preview songs from Spotify using Spotify API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published