Saving & Sorting Favorites in a List in SwiftUI (iOS 15)

  Рет қаралды 11,266

Indently

Indently

Күн бұрын

In today's video we will be looking at how you can add favorites in a list and save them locally to your app. The main idea behind this is creating another list that contains the ID's of items that you favorite, then you compare the two lists and return the items that were favorited of course.
00:00 App Demo
01:12 Getting Started
01:35 Model
03:07 Database
05:02 ViewModel
10:01 ContentView
12:55 Running the App
14:24 Outro
Source code: github.com/federicocotogno/Sa...

Пікірлер: 12
@waleedware7779
@waleedware7779 2 жыл бұрын
nice clear video as usual👍🏻, one of the many things I learned from this video is the Viewmodel concept.👍🏻👍🏻
@abdouett3676
@abdouett3676 2 жыл бұрын
Very good job and clear explanation! Thank you!
@EricTMCode
@EricTMCode 11 ай бұрын
Thank you, very clear explanation!
@masoudrezaei1302
@masoudrezaei1302 2 жыл бұрын
first, I said this is like the other videos but now I'm saying it's working to me
@pedroferreira8678
@pedroferreira8678 Жыл бұрын
Excelente video, like y suscrito.
@kwkistler
@kwkistler 2 жыл бұрын
Thanks for this great tutorial. How can I add a data Array for the Title and Description
@arnavrgoy
@arnavrgoy 2 жыл бұрын
Great video! I have a quick question. How do I populate the list with my own custom things? I am learning app development and coding, so this question might have a really simple solution.
@nikitap3738
@nikitap3738 Жыл бұрын
Hi I loved the video but how can you add things into the list instead of having the sample title?
@johnpill1
@johnpill1 Жыл бұрын
Would this work if the array was filled with Structs? I’m working on a project and set up the data structure first now not sure how to save to persistent memory!
@masoudrezaei1302
@masoudrezaei1302 2 жыл бұрын
create a video about searching in the database list
@Pr0Cre
@Pr0Cre 2 жыл бұрын
The attribute 'isFaved' of the Item Model is not used and not needed.
@Indently
@Indently 2 жыл бұрын
True, congrats on noticing that little bonus challenge.
How to use @AppStorage in SwiftUI | Bootcamp #52
17:08
Swiftful Thinking
Рет қаралды 28 М.
How to write good Unit Tests for iOS Apps in SwiftUI (2022)
26:53
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 68 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 10 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 5 МЛН
Beginners Often Make THIS Mistake In Python
5:02
Indently
Рет қаралды 6 М.
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 42 М.
How to use @ObservableObject and @StateObject in SwiftUI | Bootcamp #50
35:12
SwiftUI MapKit Basics
12:41
CodeWithChris
Рет қаралды 20 М.
5 Classic Noob Mistakes In Python
14:39
Indently
Рет қаралды 14 М.
1. SwiftData CRUD Operations
42:40
Stewart Lynch
Рет қаралды 24 М.
NavigationStack - SwiftUI Programmatic Navigation - iOS 16
20:20
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
🔴 NEW SwiftUI Airbnb Clone | iOS 17 | Xcode 15
3:09:05
AppStuff
Рет қаралды 43 М.
Letting users select items in a List - Hot Prospects 1/16
4:38
Paul Hudson
Рет қаралды 1,1 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 68 МЛН