Book Image

SwiftUI Projects

By : Craig Clayton
Book Image

SwiftUI Projects

By: Craig Clayton

Overview of this book

Released by Apple during WWDC 2019, SwiftUI provides an innovative and exceptionally simple way to build user interfaces for all Apple platforms with the power of Swift. This practical guide involves six real-world projects built from scratch, with two projects each for iPhone, iPad, and watchOS, built using Swift programming and Xcode. Starting with the basics of SwiftUI, you’ll gradually delve into building these projects. You’ll learn the fundamental concepts of SwiftUI by working with views, layouts, and dynamic types. This SwiftUI book will also help you get hands-on with declarative programming for building apps that can run on multiple platforms. Throughout the book, you’ll work on a chart app (watchOS), NBA draft app (watchOS), financial app (iPhone), Tesla form app (iPhone), sports news app (iPad), and shoe point-of-sale system (iPad), which will enable you to understand the core elements of a SwiftUI project. By the end of the book, you’ll have built fully functional projects for multiple platforms and gained the knowledge required to become a professional SwiftUI developer.
Table of Contents (13 chapters)

Chapter 8: Shoe Point of Sale System – Design

When SwiftUI was announced and I finally decided to write again, this app idea was number one on my list. I feel like you can really see the power of reactive programming in an app that has a lot going on on one screen. I am also a huge fan of shoes, so it was a no-brainer for me.

In this chapter, we will be building a Point of Sale (POS) system for shoes. We are going to ignore multi-tasking because my thinking for this app is that it would be used on company iPads and at the cash registers used for checking out customers' items only. I wanted to focus on particular features, instead of this app being universal in application. In the last two chapters, the app we built was more adapted for use with multi-tasking. Here, we will be building an app that is connected to CloudKit. You will be designing and coding the shoe app, and you will also be able to see the store's inventory. Since this app will be more about data...