Build A Restaurant Viewing App in Swift 4 — Intro

Gary Tokman
Jan 30, 2018 · 2 min read
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!

Build Swift Apps

The goal of Build Swift Apps is to make learning iOS…

Build Swift Apps

The goal of Build Swift Apps is to make learning iOS development easier. Each week new tutorials are released on topics that are challenging and fun.

Gary Tokman

Written by

iOS Software Engineer ⚡️ Creator

Build Swift Apps

The goal of Build Swift Apps is to make learning iOS development easier. Each week new tutorials are released on topics that are challenging and fun.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Start a blog

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store