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)

Final challenge

There is actually one more module that needs to be created: the Playoff module. Since you will be creating Schedule, you will actually be creating a Playoff module at the same time. You can ignore the grid on the left and just focus on the games. Your task is to get Schedule set up so that it shows both the preseason and regular season. When you are done, your PlayoffGridModuleView module also needs to be updated. We have created sufficient modules together that you can do all of this on your own. If you get stuck, feel free to look at the completed files to see what I did. Remember to add the feed call we set up for ScheduleView in the onAppear() method, just like we did for RosterView.

We are not going to worry about loading data into the game details dashboard since this requires a feed that can load data based on the game. Game details is beyond the scope of this book as it would require a lot of work to get it working.

If you get stuck with ScheduleView or...