Advanced Data Management in SwiftData & SwiftUI

所在平台: Udemy

课程主页: https://www.udemy.com/course/advanced-data-management-in-swiftdata-swiftui/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:SwiftData与SwiftUI中的高级数据管理 课程概述:苹果在WWDC 23上推出了SwiftData,采用了声明式的方法,类似于SwiftUI。SwiftData通过使用声明式代码简化数据持久化,使我们能够建模和管理数据,无需使用模型架构设计文件,并且可以直接用Swift代码进行数据查询和过滤。SwiftData旨在与UIKit和SwiftUI兼容,并能无缝集成到SwiftUI中。作为建立在Core Data之上的现代数据持久化方法,SwiftData提供了用Swift语言编写的原生API。它使用宏来生成代码,这是WWDC 23引入的一项强大功能,旨在生成快速、高效且安全的代码。SwiftData依赖多个基础组件来运作,课程将探讨这些构建块如何协同工作,为数据持久化提供全面的解决方案。SwiftData会自动构建架构,通过模型高效映射其字段到基础存储。当需要对象时,SwiftData会从数据库中获取,并在适当时刻自动保存,无需额外工作。此课程不仅教授SwiftData和SwiftUI,还将帮助学员在SwiftData支持的应用程序中构建高级功能。加入我们,探索SwiftData和SwiftUI,同时学习如何构建真实应用。

课程评论(0条)

课程详情

Apple introduced SwiftData in WWDC 23. Similar to SwiftUI, SwiftData takes declarative approach. SwiftData makes data persistence easy by letting us model and manage data using declarative code eliminating the need of using model schema design files and bringing in the querying and filtering of data purely in Swift code. SwiftData is designed to work with both UIKit and SwiftUI and it seamlessly integrate with SwiftUI. SwiftData is built on the top of Core Data but it brings modern approach to the data persistence by providing native APIs written in Swift language. SwiftData uses macros to generate code. Macros are another powerful feature introduced in WWDC 23 and they are used to generate fast, efficient and safe code. SwiftData relies on several foundational components for its operation, and we will explore how these building blocks work together to provide a comprehensive solution for data persistence in a straightforward manner.SwiftData automatically builds a schema using our models and maps their fields efficiently to the underlying storage. Objects managed by SwiftData are fetched from the database when needed and automatically saved at the right moment, with no additional work on our part. This course is designed to not only teach you SwiftData & SwiftUI but to build advanced features in SwiftData backed apps. Join us in this course and learn to build real app while exploring SwiftData and SwiftUI.

课程标签

0人关注该课程

主题相关的课程