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)


Mockoon is a Mac app and is very similar to Postman, though to me, Mockoon is much easier to get started with. If you are more familiar with Postman, by all means use that, though in this chapter, we will be using Mockoon. You can download Mockoon from the official website at Once you have installed Mockoon, you will see that some demo paths have already been created for you:

Figure 11.1

If you open the project files for this chapter, you will see a folder called feeds. Inside the feeds folder, you will see the sportsnews.json file. Move this file to your desktop so that it's easier to find. Then, inside Mockoon, go to the Import/export menu and select Mockoon's format:

Figure 11.2

Then, select Import from a file (JSON):

Figure 11.3

Select the sportsnews.json file wherever you saved it. Once you have done this, you will see that all the feeds have been loaded into...