/vz2o3nlnhpami86o

Note

Dominik Hofer
Dominik Hofer

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!

Follow

RSS Feeds