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 4: Car Order Form – Design

A passion for cars was something that I never had as a kid and into my adult life. My first car was a hand-me-down from my mom, a 1984 Chevy Nova. Yes, I know it was nothing pretty, but it was better than walking. The first car that caught my attention was a Chrysler 300. After I saw it, I became obsessed, and it was my first goal. I bought a die-cast version of this car and kept it on my desk as a goal.

Since then, I have owned two cars. I never really thought I would want another car as much as the Chrysler 300 until I sat in a Tesla. I do not own a die-cast version of this car yet, but I'll probably have one by the time this book is published. It is a goal for a few years down the road, but goals keep me focused.

When I designed the app for this chapter, I thought it would be fun to use Tesla as the car for my design. In this chapter, we are going to create a fake car-service order form. We'll learn how to take a generic...