iOS 15: One-to-many relationships with @FetchRequest and SwiftUI – Core Data SwiftUI Tutorial 7/7

iOS 15: One-to-many relationships with @FetchRequest and SwiftUI – Core Data SwiftUI Tutorial 7/7

Paul Hudson

2 года назад

14,273 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Beanberg Gaming
Beanberg Gaming - 04.07.2023 01:34

Thanks so much for your tutorial! It helped me lots

Ответить
Leo Junquera
Leo Junquera - 21.06.2023 21:26

Great tutorial. Do you have a many to many example? One where you might have to keep additional in the intermediate table? Like Recipe/Ingredient with an intermediate table for amount, or User/Rating/Restaurant, etc.

Ответить
Leo Junquera
Leo Junquera - 01.06.2023 01:43

Couldn't you have the classes automatically created and create an extension class for the object and still use Codegen = class definition?

Ответить
Leo Junquera
Leo Junquera - 31.05.2023 00:43

Another great video. Do you have an example of a core data and a form supporting a many-to-many relationship?

Ответить
Roustam Manookian
Roustam Manookian - 19.02.2023 07:11

Hi, how to fetch only the Countries without the relationship entities?

Ответить
Hamideh Sheikh
Hamideh Sheikh - 19.02.2023 05:32

Such a great tutorial, and you are the best teacher. Thank you so much🥰

Ответить
Альфред Гордан
Альфред Гордан - 25.01.2023 19:43

OMG. this video is mind-blowing

Ответить
elie cohen
elie cohen - 03.11.2022 14:54

How many treats do they get everyday?

Ответить
梁非凡
梁非凡 - 23.10.2022 18:56

constraints failed to work in Xcode Version 14.1 beta (14B5024h) sometimes, I added constraints for shortName but I can still see a bunch of entries with the same short name, I even downloaded your project 12 from github and directly run on my mac, still no luck. But previously it worked perfectly for singers with same names, really strange.

Ответить
Andy MacLeod
Andy MacLeod - 20.10.2022 12:41

Why did Paul call those variables wrappedShortname (etc) rather than unwrappedShortname? Thanks.

Ответить
Alshafi
Alshafi - 05.09.2022 01:12

how to clean all the errors and warnings?

Ответить
Danny Tong
Danny Tong - 31.08.2022 13:13

Power of Hungry Dogs lol 🤣

Ответить
Kolmar Kafran
Kolmar Kafran - 26.08.2022 16:30

Wouldn't it be better to put the wrapped properties as an Extension in another file so it doesn't get rewritten?

Ответить
sxlx
sxlx - 07.06.2022 18:32

One man has many dogs.
Many dogs have one man.

Ответить
Tommy
Tommy - 13.05.2022 20:54

Such a great tutorial, you helped me so often!

Ответить
Seungjun Lee
Seungjun Lee - 12.04.2022 19:07

Thanks you sooo much foir this awesome great video!

Ответить
tillus
tillus - 30.03.2022 23:19

Thank you, that's such great tutorial!

Ответить
David Nitzsche-Bell
David Nitzsche-Bell - 16.02.2022 18:52

Well, well, well....Who would have thought that I'd learn something about the origin of candy bars in a video about SwiftUI???? I was all ready to "correct" you about the origin of Mars, Twix and KitKat (I'm from the US and, of course, everything was invented in the US, right? <wink>) but life has taught me to look things up first. And, lo and behold, invented in UK!!! So, at least I can blame the UK for being the US's origin story for fascination with junk food. ;)

Ответить
Yanhao Li
Yanhao Li - 30.01.2022 15:24

Love the dogs!

Ответить
isthorify
isthorify - 30.01.2022 11:45

Thx for this. I followed this tutorial using swift playground on the iPad. It works fine, but is it possible to set Contraints for Entity manually, not using Xcode ?

Ответить
Daveyon Mayne
Daveyon Mayne - 29.01.2022 18:30

Hola. Could you make a video on how to update/delete an entity?

Ответить
Unique Crafter
Unique Crafter - 01.01.2022 16:16

If I want to store URLs and UUIDs in Core Data, what should I nil coalesce to when creating those computed properties? A new empty URL instance (i.e URL(fileWithPath: "") and a new UUID() instance respectively?

Ответить
Sir Poohbehr
Sir Poohbehr - 30.12.2021 21:12

Insanely helpful tyvm :D

Ответить
cliffspencer
cliffspencer - 14.12.2021 20:54

Paul, shouldn't those convenience properties be called unwrapped* as you are actually unwrapping the optional?

Ответить
Usha JGD
Usha JGD - 06.12.2021 05:13

Is there a working code for download available?

Ответить
Desmond Fitch
Desmond Fitch - 30.11.2021 22:39

How can I create data and display it when the app starts, without having to click the button first?

Ответить
Matthew Niederberger
Matthew Niederberger - 29.11.2021 00:07

I am in the mood for candy now 🍬… those dogs though, wonderful 😊 Love the videos 👍🏻

Ответить