Skip to Content
An iOS Developer's Guide to SwiftUI
book

An iOS Developer's Guide to SwiftUI

by Michele Fadda
May 2024
Beginner to intermediate content levelBeginner to intermediate
446 pages
10h 33m
English
Packt Publishing
Content preview from An iOS Developer's Guide to SwiftUI

9

An Introduction to Animations in SwiftUI

There are quite a few ways to animate content in SwiftUI. SwiftUI animations have a declarative syntax, meaning you describe what results you want to achieve, and SwiftUI does the heavy lifting. Animations in SwiftUI tend to be state-driven (i.e., they depend on state changes, making them reactive and easy to reason about).

SwiftUI provides pre-made modifiers such as animation, transition, and scaleEffect, which allow the effective application of animation effects to views. It is generally more straightforward than UIKit, as you don’t need to meddle with an imperative syntax or manage synchronization manually, nor do you need a deep understanding of layer properties.

SwiftUI offers a good balance of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SwiftUI - The Complete iOS 17 Reference Library of Code

SwiftUI - The Complete iOS 17 Reference Library of Code

Stephen DeStefano
Developing Apps with GPT-4 and ChatGPT

Developing Apps with GPT-4 and ChatGPT

Olivier Caelen, Marie-Alice Blete

Publisher Resources

ISBN: 9781801813624Supplemental Content