This is custom Spotify iOS app. It allows you search and browse and possibly even play some music.
It’s an example app, built to showcase KiLS1 architecture: Keep it Layered & Simple.
This is built with Swift 5 code thus do use Xcode 10.2.
(1) Install Homebrew
(2) Install Sourcery
brew install sourcery
(3) Install Carthage
brew install carthage
(4) Open Terminal, go to the project root folder, then do this:
carthage update --no-build
carthage build --platform iOS
(5) Open Spotifier.xcodeproj
and it should compile just fine.
(6) Look into Spotify/Spotify.swift
, at the top you should see:
private static let clientID: String = "YOUR_CLIENT_ID"
private static let clientSecret: String = "YOUR_CLIENT_SECRET"
That’s where you need to paste your OAuth2 credentials you get when you register your app as client on Spotify Developer Portal.
Footnotes
-
aka the LAYERS, aka the ONION, aka the GARLIC architecture ↩