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)

Walking through the design specs

Every app in this book has design specs for you, which means you can access font sizes, spacing, images, colors, and anything else relevant to the app. You will see that my numbers will be exact, and you will also know where I changed them. Sometimes, the spacing is off, or the design was not right on the device and required a tweak. Design specs are a guideline, but you can take the designs and recreate them into something different; once you understand how to do it with someone else's designs, you will be able to change them and make them your own easily.

Open the Chapter 3 project file, and you will see the same structure from now on. Every design chapter will have a specs folder, a starter folder, and a completed folder. Open the specs folder, and you will see the following:

Figure 3.2

Figure 3.2

All you need to do is open index.html in a browser of your choice, and you will see the sketch designs:

Figure 3.3
...