ios
Featured blog image
IOS 10 min read

📝 SwiftData — 4/30 Days ModelContainer & ModelContext (Lifecycle & Concurrency)

Author

📝 SwiftData — ModelContainer & ModelContext (Lifecycle & Concurrency)

📦 ModelContainer

  • A container that manages your model schema and storage (backed by SQLite by default)

  • Created once (usually in App struct)

Related Topics

Featured blog image
IOS 5 min read

📝 Day 3 — Adding and Deleting Items with SwiftData

Author

Yesterday, I built a simple list of saved wishes using SwiftData.
But the list was static — I couldn’t add or remove anything.

Today, I learned how to insert new data and delete existing data using SwiftData and SwiftUI.
It turned out to be super easy!

Related Topics

Featured blog image
IOS 10 min read

Day 2/30 Getting Started with SwiftData in SwiftUI

Author

💡 What is SwiftData?

SwiftData is Apple’s modern persistence framework introduced in iOS 17.
It is like Core Data but redesigned for SwiftUI — lightweight, Swift-native, and declarative.

Here’s what makes it nice:

  • ✅ Write plain Swift classes marked with @Model

Related Topics

Featured blog image
IOS 5 min read

Day 1/30 SwiftUI: AsyncImage

Author

📸 Loading Images from the Internet with AsyncImage

Sometimes in an app, we need to show pictures from the internet — like user profile photos or news thumbnails.

Before, this used to be tricky. But now in SwiftUI (from iOS 15), Apple gave us a very handy tool called AsyncImage.
It makes life a lot easier. ✨

🖼 The Simple Way

Just give it a URL. That’s it.

 

AsyncImage(url: URL(string: "https://example.com/photo.jpg"))

 

Related Topics