Build A Restaurant Viewing App in Swift 4 — Intro

Gary Tokman
Build Swift Apps
Published in
2 min readJan 30, 2018
Introduction Video

Today I am excited to start a new series on building a restaurant viewing application in Swift. Each video will be followed by an article that goes over the key points that I wanted to cover. It will also allow me to update any content that has been outdated from the rapid evolution of the Swift programming language.

Video one is a short introduction of the key feature within the application. In short, we’ll be loading restaurants from the Yelp API into a list. If that sounds boring or simple, check the screenshots below. I tried my best to make it engaging, and hopefully, you can learn something new. (The following screens contain dummy data just to get the point across).

Let’s start with asking for the user for their location. Location is key because the Yelp API will display restaurant results based on the coordinates.

Location Permission — source

Next, the app will load the restaurant data from the API and display the results in a list. We’ll style the cell with the data returned by the Yelp API.

List of Restaurants

We’re not going to stop here; let’s make a detail screen that gives more info on the restaurant. Here we can display a few photos and most important a map.

Restaurant Details

That was a rundown of the application. After building it hopefully, you can walk away with some new skills. Primarily you will learn how to get the users location with CoreLocation, implement networking with Alamofire, and pass data between screens. Lastly, subscribe to the channel to receive notifications when new videos drop.

If you enjoyed this article please support me and drop a like 👏. Thanks!

--

--