SwiftData Guide: Declarative Data Persistence for SwiftUI Apps

Learn how to model, query, and persist application data seamlessly in SwiftUI using SwiftData's modern, declarative API.

4.6 (278) ⏱ 38 นาที 📚 8 บทเรียน 🎧 เวอร์ชันเสียง

เกี่ยวกับคอร์สนี้

Managing data in modern iOS applications shouldn't require complex boilerplate or legacy database frameworks. SwiftData offers a modern, declarative way to persist, query, and manage your application's state directly within SwiftUI. This written course takes you from data persistence fundamentals to structuring complex data relationships. You will gain a clear understanding of how to define data models, write type-safe queries, and handle database updates as your application evolves. By focusing on practical, modern practices, you will learn how to build reliable, data-driven applications that load and store information efficiently. What you'll learn: - Understand the foundational concepts of declarative data persistence and the SwiftData architecture. - Define robust data models using modern macros and manage relationships, including one-to-many and many-to-many configurations. - Query and filter data efficiently using type-safe predicates and sort descriptors directly within SwiftUI views. - Configure container environments, including in-memory configurations designed for seamless testing and SwiftUI Previews. - Implement basic schema migrations to safely update your database structure as your application requirements change. The course begins with essential database terminology and basic model setup before moving step-by-step through relationship modeling, querying, and schema management. You will learn through clear, written explanations and practical code snippets designed for immediate application. This course is designed for beginner to intermediate Swift developers who want to integrate robust data storage into their SwiftUI applications. No prior database administration experience is required. Start writing clean, declarative persistence code today.

สิ่งที่คุณจะได้รับ

  • 📜 ใบประกาศนียบัตร
    เพิ่มในโปรไฟล์ LinkedIn ของคุณ
  • 🎧 รวมเวอร์ชันเสียง
    เรียนได้ทุกที่ ไม่ต้องดูจอ
  • ♾️ เข้าถึงตลอดชีพ
    กลับมาเรียนได้ตลอด ไม่มีหมดอายุ
  • 📱 โทรศัพท์หรือคอมพิวเตอร์
    ใช้งานได้ทุกที่ ทุกอุปกรณ์
  • 💸 คืนเงิน 30 วัน
    ไม่ต้องอธิบาย
  • กระชับและตรงประเด็น
    38 นาที เนื้อหาเชิงปฏิบัติ

รีวิว (4)

خديجة الماجري TN
★ 4 · 2026-05-09T02:59:56+00:00

ดีใจมากที่ได้เรียนคอร์สนี้ การแบ่งย่อยเนื้อหาทำให้เข้าใจง่ายมาก คุ้มค่ากับความพยายามที่ลงไป

Mia White AU ผู้เรียนที่ยืนยันแล้ว
★ 4 · 2025-09-28T03:30:56+00:00

ชอบมากเลย ตัวอย่างช่วยได้เยอะมาก ทำให้เรื่องยากๆ เข้าใจง่ายขึ้น คุ้มค่ามาก!

Gila Stern IL
★ 4 · 2025-06-10T10:29:56+00:00

เน้นการนำไปใช้จริงและจัดระเบียบได้ดีมาก ชอบตัวอย่างการประยุกต์ใช้ในโลกจริงที่แสดงให้เห็น นี่คือสิ่งที่ฉันมองหาเลย

يوسف بن خالد الشامسي OM ผู้เรียนที่ยืนยันแล้ว
★ 4 · 2025-03-11T18:02:56+00:00

ดีใจมากที่ได้เรียน เนื้อหาไหลลื่นอย่างมีเหตุผล และการนำไปใช้ในโลกแห่งความเป็นจริงก็เกี่ยวข้องอย่างเหลือเชื่อ ทำได้ดีมาก!

เขียนรีวิว

หลังจากส่ง เราจะขอให้คุณเข้าสู่ระบบ — ฉบับร่างของคุณถูกบันทึก

ผู้เรียนคนอื่นเรียน

พัฒนาแอพ iOS และโปรแกรม Swift สำหรับมือใหม่

สร้างพื้นฐานที่มั่นคงในการเขียนโปรแกรมด้วย Swift และเรียนรู้การออกแบบแอพพลิเคชัน iOS แบบทันสมัยและตอบสนองได้ตั้งแต่ต้น ผ่านการฝึกเขียนและโค้ด
★ 5.0 (6,972)
$4.99$9.99

การเขียนโปรแกรม Swift และการสร้างรายได้จากแอป iOS สำหรับผู้เริ่มต้น

เรียนรู้ไวยากรณ์ Swift ที่จำเป็นและค้นพบกลยุทธ์สมัยใหม่เพื่อสร้างรายได้จากแอป iOS ของคุณผ่านการสมัครสมาชิก โฆษณา และการซื้อภายในแอป
★ 5.0 (14)
$4.99$9.99

การสร้างแอป iOS สำหรับผู้เริ่มต้นด้วย Swift และ SwiftUI

เรียนรู้พื้นฐานของ Swift และ SwiftUI ที่ทันสมัยเพื่อพัฒนาแอปพลิเคชัน iOS ตัวแรกของคุณผ่านแบบฝึกหัดที่เป็นลายลักษณ์อักษรพร้อมคำแนะนำ
★ 4.7 (19)
$4.99$9.99

พื้นฐานของ iOS และ Swift Development

คำแนะนำขั้นตอนต่อขั้นตอนสำหรับผู้เริ่มต้นในการเรียนรู้การเขียนโปรแกรม Swift และสร้างแอพพลิเคชันมือถือที่ทำงานได้อย่างสมบูรณ์
★ 4.7 (2,255)
$4.99$9.99

คำถามที่พบบ่อย

ฉันต้องใช้อะไรในการเรียนคอร์สนี้? +

แค่โทรศัพท์หรือคอมพิวเตอร์ที่มีอินเทอร์เน็ต ไม่ต้องติดตั้งหรือใช้อุปกรณ์พิเศษ

ฉันชำระเงินอย่างไร? +

ผ่านบัตรด้วย Stripe หรือคริปโต เราไม่เก็บข้อมูลบัตร — Stripe จัดการอย่างปลอดภัย

ฉันขอคืนเงินได้ไหม? +

ใช่ — คืนเงินเต็มจำนวนใน 30 วัน ไม่ต้องอธิบาย

ฉันมีสิทธิ์เข้าถึงนานเท่าไร? +

ตลอดไป เมื่อซื้อแล้วคอร์สเป็นของคุณ กลับมาเรียนได้ตลอด

ฉันจะได้ใบประกาศนียบัตรไหม? +

ได้ เมื่อเรียนจบจะได้รับใบประกาศนียบัตรที่เพิ่มในโปรไฟล์ LinkedIn ได้

ออกแบบสำหรับผู้เรียนใน
เทคโนโลยี ดีไซน์ การเงิน การตลาด สาธารณสุข การศึกษา ธุรกิจการบริการ อุตสาหกรรม