Book Image

Build an iOS 16 Coffee Shop Application Using SwiftUI and Firebase [Video]

By : David Kababyan
Book Image

Build an iOS 16 Coffee Shop Application Using SwiftUI and Firebase [Video]

By: David Kababyan

Overview of this book

In this course, we will build a real online coffee shop ordering application using SwiftUI. You will learn how to build an application from scratch using iOS, SwiftUI, and XCode. The course explains how to write clean and readable code and structure our app development to be able to reuse the code for a long time. As part of the course, we will cover concepts such as setting up the TabView, creating a model and dummy drinks, creating a HomeView model and Firebase repository, creating a Drinks row, Async image, the drinks detailed view, and a basket view model. We will create different views to include the basket view, empty basket view, and account view. You will learn to secure storage and save users to a keychain. We will advance to create a Firebase app, save the menu to Firebase, and set up a Firebase repository, create orders, and more. Upon completion of the course, you will independently be able to build your very own coffee shop application that can choose items, place orders, pay, and save users to storage using Xcode, SwiftUI, and Firebase.
Table of Contents (1 chapters)
Chapter 1
Building the App
Content Locked
Section 3
Creating a Model and Dummy Drinks
In this video, we will create a model and dummy data for the drinks that will be displayed in the menu of our coffee shop app. We will create a drink struct that will contain the properties of each drink, such as name, description, price, and image. We will create a list of dummy drinks using the Drink struct and use it to display the drinks in the menu tab.