Book Image

Learn SwiftUI

By : Chris Barker
Book Image

Learn SwiftUI

By: Chris Barker

Overview of this book

SwiftUI is the new and powerful interface toolkit that lets you design and build iOS, iPadOS, and macOS apps using declarative syntax. It is a powerful way to develop the UI elements of applications, which would normally be tightly coupled to application logic. Learn SwiftUI will get you up to speed with the framework and cross-device UI development in no time. Complete with detailed explanations and practical examples, this easy-to-follow guide will teach you the fundamentals of the SwiftUI toolkit. You'll learn how to build a powerful iOS and iPadOS application that can be reused for deployment on watchOS. As you progress, you'll delve into UI and unit testing in iOS apps, along with learning how to test your SwiftUI code for multiple devices. The book will also show you how to integrate SwiftUI features such as data binding and network requests into your current application logic. By the end of this book, you will have learned how to build a cross-device application using the SwiftUI framework and Swift programming.
Table of Contents (17 chapters)

Preface

SwiftUI is the brand new UI framework unveiled by Apple at WWDC 2019. For iOS, it comes as a potential successor to UIKit and AppKit for macOS.

SwiftUI takes full advantage of declarative syntax, changing the way we think about designing and developing apps.

We start by taking a look at the Swift programming language before moving onto how declarative syntax works so well for SwiftUI. We’ll then begin to program our very own recipe app, learning all about the simplicity of SwiftUI along the way. We’ll also learn about existing UI frameworks and how we can integrate those directly into our project with ease.

Once our iOS app is up and running, we’ll see how making the transition over to iPadOS and watchOS is made even easier.

With brand new features built directly into Xcode 11 and the power of the Swift 5.2 programming language - SwiftUI is the start of something very special.