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)


In this chapter, we've touched on the core basics of animation in SwiftUI. We've learned about the differences between explicit and implicit animations and when best to use one or the other. We've referenced all the various animation options available to use, from the various types of easings to all the options that springs have to offer.

Next, we looked at scaling and rotation and put both into practice with the animation types that we just covered, thereby allowing us to experiment with various settings to get our desired effect.

Finally, we took everything we learned from the previous sections and added this to our existing Recipe app. We finished this off by showing you how well the .rotation3DEffect animation works.

In the next chapter, we're going to be continuing with the theme of animations and take a look at how transitions work in SwiftUI...