Pinchflat

SwiftData Tutorial: How to Easily Persist Data in SwiftUI - Xcode 15 - Swift

Raw Attributes

Source: LärMigSwift
  • culled_at: 2025-04-23T01:00:02Z
  • uuid: f93d1f4f-b192-4793-ae08-520723ec799d
  • subtitle_filepaths:
  • media_redownloaded_at:
  • description: In this SwiftData tutorial, I share the basics of SwiftData, a new data persistence framework introduced during WWDC 2023. SwiftData allows you to store and manage data on your device and even use iCloud sync to share data between different devices. I explain how to use SwiftData with SwiftUI in Xcode 15 beta 5 and highlight some of its advantages. I start by showing you how to create a new project in Xcode 15 and choose SwiftData as the storage option. I then walk you through the process of creating a basic example using SwiftData, including defining model files, generating a schema, and working with the model context. Next, I demonstrate how to insert, update, and delete data using SwiftData. I also show you how to use bindings to easily update properties in your data model. Additionally, I cover sorting and filtering data with SwiftData, allowing you to customize the display of your data based on specific criteria. Throughout the video, I provide tips and insights into working with SwiftData, including potential issues and limitations to be aware of. I am using Xcode 15 beta 5 ⬇️ get the project files from https://github.com/gahntpo/SwiftDataTodoApp/tree/main If you liked what you learned and you want to see more, check out one of my courses! 👨‍💻 my SwiftUI course https://learn.swiftyplace.com/swiftui-layout-course 👨‍💻 my Core Data and SwiftUI course https://learn.swiftyplace.com/swiftui-core-data-mastery-course #SwiftData #swiftui #wwdc2023
  • title: SwiftData Tutorial: How to Easily Persist Data in SwiftUI - Xcode 15 - Swift
  • id: 90036
  • thumbnail_filepath:
  • inserted_at: 2024-10-24T16:47:49Z
  • updated_at: 2025-04-23T01:00:03Z
  • original_url: https://www.youtube.com/watch?v=CcUgRDLcUmQ
  • short_form_content: false
  • uploaded_at: 2023-08-01T17:00:13Z
  • predicted_media_filepath: /downloads/LärMigSwift/Season 2023/s2023e080100 - SwiftData Tutorial: How to Easily Persist Data in SwiftUI - Xcode 15 - Swift.mp4
  • livestream: false
  • nfo_filepath:
  • media_filepath:
  • source_id: 10
  • media_downloaded_at: 2024-10-24T16:48:04Z
  • duration_seconds: 2063
  • last_error:
  • prevent_download: true
  • media_id: CcUgRDLcUmQ
  • matching_search_term:
  • metadata_filepath:
  • tasks:
  • playlist_index: 0
  • prevent_culling: false
  • upload_date_index: 0
  • media_size_bytes: 101995460

Nothing Here!