Day 61 #100DaysOfSwiftUI
ā Added CoreData to the personal CRM app
Took me two days to implement the CoreData functionality, but it was so worth it ā I learned a ton!
Here are the most noteworthy things š
I excluded not used sections (e.g. letters in the list, where no name is listed below).
This especially shows when you start to filter/search.

You can make dynamic requests by creating NSPredicates programatically.
And also, you can combine them š¤Æ

XCode automatically creates handy methods for many-to-many CoreData relationsships.
So in this example, in order to add a friend, I can just call newUser.addToFriends(newFriend).
Searched forever to find this one. Here's more info about it:
https://cocoacasts.com/one-to-many-and-many-to-many-core-data-relationships/

That's it for this thread, hope you've learned a thing or two.
Follow me for more  dev content šØāš»
Cheers!