Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
An iOS Developer's Guide to SwiftUI

You're reading from   An iOS Developer's Guide to SwiftUI Design and build beautiful apps quickly and easily with minimum code

Arrow left icon
Product type Paperback
Published in May 2024
Publisher Packt
ISBN-13 9781801813624
Length 446 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Michele Fadda Michele Fadda
Author Profile Icon Michele Fadda
Michele Fadda
Arrow right icon
View More author details
Toc

Table of Contents (25) Chapters Close

Preface 1. Part 1: Simple Views FREE CHAPTER
2. Chapter 1: Exploring the Environment – Xcode, Playgrounds, and SwiftUI 3. Chapter 2: Adding Basic UI Elements and Designing Layouts 4. Chapter 3: Adding Interactivity to a SwiftUI View 5. Part 2: Scrollable Views
6. Chapter 4: Iterating Views, Scroll Views, FocusState, Lists, and Scroll View Reader 7. Chapter 5: The Art of Displaying Grids 8. Part 3: SwiftUI Navigation
9. Chapter 6: Tab Bars and Modal View Presentation 10. Chapter 7: All About Navigation 11. Part 4: Graphics and Animation
12. Chapter 8: Creating Custom Graphics 13. Chapter 9: An Introduction to Animations in SwiftUI 14. Part 5: App Architecture
15. Chapter 10: App Architecture and SwiftUI Part I: Practical Tools 16. Chapter 11: App Architecture and SwiftUI Part II – the Theory 17. Part 6: Beyond Basics
18. Chapter 12: Persistence with Core Data 19. Chapter 13: Modern Structured Concurrency 20. Chapter 14: An Introduction to SwiftData 21. Chapter 15: Consuming REST Services in SwiftUI 22. Chapter 16: Exploring the Apple Vision Pro 23. Index 24. Other Books You May Enjoy

SwiftData and SwiftUI

SwiftData introduces a declarative Swift-native API. It allows developers to work with data persistence in iOS apps seamlessly, and like SwiftUI follows a purely declarative paradigm.

Let’s take a look at the features of SwiftData:

  • SwiftData can perform automatic migrations of the underlying model data, allowing you to maintain a consistent state for the data after application updates. It simplifies the boilerplate and error-prone code associated with data migrations.
  • SwiftData has live updates. One of its main features is the live updates to SwiftUI views when the underlying data changes, without the need for manual refreshes. This is consistent with SwiftUI design and is facilitated through the @Query property wrapper, which we will cover later in this chapter in the Fetching data section.
  • SwiftData requires minimal code and has a straightforward setup. It leverages Swift’s modern structured concurrency features and does not...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime