- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Decoding JSON and Persisting with SwiftData in SwiftUI
In this video, Mohammad Azam walks you through how to load data from a local JSON file, decode into SwiftData @Model objects, and display it using SwiftUI’s List view.
✅ What You'll Learn:
- How to decode JSON into SwiftData models
- Transforming DTOs (Data Transfer Objects) into SwiftData models
- Using @Query to fetch data in SwiftUI
- Seeding your SwiftData model only once using .task { }
- Working with @Environment(\.modelContext) for inserting model instances
💡 Perfect for: iOS developers who are getting started with SwiftData and want to understand how to bootstrap their apps with JSON-based data.
Gist: https://gist.github.com/azamsharpschool/282cfc1e07318a2ec18b0b2dcf4315d3
💡 Want to become a pro developer?
Check out AzamSharp School for in-depth iOS development courses: https://azamsharp.school
💬 Have questions? Drop them in the comments!
👍 If you found this helpful, don’t forget to like, share, and subscribe for more SwiftUI tutorials! 🚀
#SwiftUI #iOSDevelopment
Видео Decoding JSON and Persisting with SwiftData in SwiftUI канала azamsharp
✅ What You'll Learn:
- How to decode JSON into SwiftData models
- Transforming DTOs (Data Transfer Objects) into SwiftData models
- Using @Query to fetch data in SwiftUI
- Seeding your SwiftData model only once using .task { }
- Working with @Environment(\.modelContext) for inserting model instances
💡 Perfect for: iOS developers who are getting started with SwiftData and want to understand how to bootstrap their apps with JSON-based data.
Gist: https://gist.github.com/azamsharpschool/282cfc1e07318a2ec18b0b2dcf4315d3
💡 Want to become a pro developer?
Check out AzamSharp School for in-depth iOS development courses: https://azamsharp.school
💬 Have questions? Drop them in the comments!
👍 If you found this helpful, don’t forget to like, share, and subscribe for more SwiftUI tutorials! 🚀
#SwiftUI #iOSDevelopment
Видео Decoding JSON and Persisting with SwiftData in SwiftUI канала azamsharp
Комментарии отсутствуют
Информация о видео
1 апреля 2025 г. 3:52:03
00:26:43
Другие видео канала





















