iOS 15: How to combine Core Data and SwiftUI- Bookworm SwiftUI Tutorial 3/10

  Рет қаралды 42,666

Paul Hudson

Paul Hudson

Күн бұрын

Пікірлер: 50
@bobbrysonn
@bobbrysonn Жыл бұрын
This was perfect introduction to CoreData. Thank you.
@UrbaneHobbit
@UrbaneHobbit 2 жыл бұрын
This is an excellent tutorial with a clear introduction of topics and (importantly) full explanation of functionality - both in terms of what elements are in use and what each one does. It takes me back to the original Ruby on Rails video tutorial, if anyone remembers that. This is exactly what I needed at this moment in my project, and I am excited to try this out.
@nat.serrano
@nat.serrano 2 жыл бұрын
the best swift teacher on the planet, in the solar system, the Galaxy, the universe, the cluster universe, the matrix, the future metaverse
@MoSaghafian
@MoSaghafian 2 жыл бұрын
Your tutorials never let me down. Thank you
@binwiederhier
@binwiederhier 2 жыл бұрын
Fantastic explanation, without any fuzz and straight to the point. Thank you.👍
@andycouto7688
@andycouto7688 Жыл бұрын
for anyone getting an error from xcode saying "cannot find type 'Student' in scope" try cleaning your build folder, derived data, close and reopen Xcode.
@maryannadelman4438
@maryannadelman4438 Жыл бұрын
Tried that. Didn't work. And getting other errors too even though I followed tutorial exactly.
@VaderPepe
@VaderPepe Жыл бұрын
Thank you for this tutorial! Made the entire progress a lot more understandable!
@storyxc6740
@storyxc6740 2 жыл бұрын
Thank you so much Paul ! it's the best tutorial i've ever seen.
@ConfidentlyRong-jo5yt
@ConfidentlyRong-jo5yt 6 ай бұрын
Quick question, with SwiftData being the new hotness should I still learn core data? Also thanks for all your videos, you're truly the best.
@DavidNitzscheBell
@DavidNitzscheBell 2 жыл бұрын
7:22 perhaps not super important, but you misspelled "description". Can't see (yet) where that variable gets used, but just in case....
@waytospergtherebro
@waytospergtherebro 2 жыл бұрын
Core Data was introduced in 2005 long before the iPhone existed. It's been around even longer if you consider the fact that EOF was basically the same thing.
@sergiocaplan1168
@sergiocaplan1168 Жыл бұрын
Strange question. When I follow this tutorial it crashes the "Preview", but runs well on the "Simulator" and any real iOS "device." I realize that the more complex code gets, the less reliable preview becomes. Just wondering if there's any sort of workaround to get the preview to be more resilient. Thanks for this lesson
@thatpolodude
@thatpolodude Жыл бұрын
Thanks Paul, great content. Awesome teaching skills!
@MauricioChavesDias
@MauricioChavesDias 2 жыл бұрын
Thanks for the video, Paul!
@Kasula23
@Kasula23 Жыл бұрын
Amazing Tutorial - Really very well explained
@genericasianboi
@genericasianboi Жыл бұрын
Can you use CoreData in swift playgrounds?
@nandolambrusco
@nandolambrusco Жыл бұрын
Thank you for this excellent introduction, very good explained
@afixithei.V
@afixithei.V 2 жыл бұрын
Good tutorial. Explanation is clear
@ClintonSiegel
@ClintonSiegel 2 жыл бұрын
Grateful for your incredible instruction and teachings! Thank you!
@schizofennec
@schizofennec Жыл бұрын
Every time i hit "Add" it is adding to the list: "Optional("Ron") Optional("Weasley")" Rather than "Ron Weasley" Possible bug with new xcode 15?
@jaredsalzano
@jaredsalzano Жыл бұрын
How would I then use CoreData from AppDelegate without making a duplicate of the persistentContainer?
@classenalex
@classenalex 2 жыл бұрын
Easy to understand nice to follow, thanks for the video
@ljunq
@ljunq 10 ай бұрын
If you wanted to run something right after the loadPersistenceStore to set some values from the database for the application. I was thinking an @Published variable in the DataController but I don't know how to access it if it's being set like: .environment(\.managedObjectContext, dataController.container.viewContext) Do you have any thoughts on this?
@martinwolczyk891
@martinwolczyk891 2 жыл бұрын
Thank you so much, your teaching style was extremely clear and useful to me! Brilliant
@makermake295
@makermake295 2 жыл бұрын
Why is the managed object context on line 11 allowed to not have a type associated with it? That's the only one I've ever seen without it
@krq999
@krq999 Жыл бұрын
Why is there's no `PersistenceController:ObservableObject` in the Persistence.swift when the code is generated(project with core data checkbox selected)? Is it observable by default without ObservableObject? Can persistenceController be placed in some higher order model like appstate? Thanks
@justsomegaming
@justsomegaming 2 жыл бұрын
Why do we make DataController to conform to ObservableObject protocol? It has no @Published properties. Same question to usage of @StateObject when we create DataController. My project works on simulator without ObservableObject/@StateObject on simulator and real device, but when I check previews I get crashes: "executeFetchRequest:error: A fetch request must have an entity". And surprisingly when I return ObservableObject/@StateObject, then previews continue to work without issues. My view that was crashing on previews was using @FetchRequest... Are these things related: ObservableObject/@StateObject/the crash? Or is it just a coincidence that adding ObservableObject/@StateObject fixes previews as well?
@IanLeon
@IanLeon Жыл бұрын
I was asking myself the same question. I don't think it is actually necessary.
@totalchrisgaming
@totalchrisgaming Жыл бұрын
Learning this because Xcode 15 Beta 4 has a glitch preventing me from using previews under SwiftData :(
@relax_music668
@relax_music668 Жыл бұрын
Thank you, it has taught me a lot,.👍
@BeosDoc
@BeosDoc 2 жыл бұрын
🙂👍🏻. For macOS SwiftUI app that would have a table of rows and columns of data loaded from a flat file, that could have 1 to more than 20,000 rows. Would you do structs or core data to hold the information? The data doesn’t need a persistent store, since it can be exported with any changes made. Sorting, filtering and rearranging columns also needed. I’m concerned about responsiveness of the UI. Thanks
@henrikkurka2681
@henrikkurka2681 2 жыл бұрын
Excellent tutorial!
@enricobecker9126
@enricobecker9126 Жыл бұрын
This NSPersistentStoreCoordinator has no persistent stores (schema mismatch or migration failure). It cannot perform a save operation. How can I fix this?
@enricobecker9126
@enricobecker9126 Жыл бұрын
solved: delete the App from Simulator and Run again..
@AvantjerTube
@AvantjerTube Жыл бұрын
Regarding the fact that Swift and Core Data each have their own definition of "optional", I'd have to say that Core Data's use of the word is more in line with the traditional concept of something being "optional" as opposed to "required". I've always thought that Swift's use of the word "optional" was a poor choice. It is *not* in line with the traditional concept of something being "optional" as opposed to "required". This made learning about Swift optionals difficult for me because I was not able to map them to the traditional meaning of "optional".
@connorvantress8073
@connorvantress8073 2 жыл бұрын
How do you use coredata text editors and text labels? Like notes style app
@amphortas1
@amphortas1 2 жыл бұрын
Thank you very much for this amazing tutorial. I have a question: Could you create a tutorial how to initialise / populate Core Data, for example, if I would like to have 1000 English words with translation is ready to use?
@enricobecker9126
@enricobecker9126 Жыл бұрын
Awesome!!! Awesome!!!!
@arnoczkyzoltan6158
@arnoczkyzoltan6158 Жыл бұрын
Thank You!
@SushiMonChicago
@SushiMonChicago 2 жыл бұрын
Hi Paul can you create some example searchable using multiple objects like start date and end date for fetch filtering? Thanks You
@vahid_sayad
@vahid_sayad 2 жыл бұрын
Isn't it a bad idea to write by viewContext?
3 жыл бұрын
Is core data, is love ❤️. Maybe You can do some like a virtual class-book - add student to class from search form, by line, and some stats of class (average grade, best score). That would be nice. I need some like this 😉
@saito_in_china
@saito_in_china 2 жыл бұрын
I was looking for this for a thousand years . Everyone who is explain everything except this , and u dint understand how d hell should function .
@MASSILOULDMOHAND
@MASSILOULDMOHAND Жыл бұрын
Excelent
@mrslana3049
@mrslana3049 3 жыл бұрын
I love you ! great! great! great!
@izzzanaaami
@izzzanaaami 2 жыл бұрын
Как же плохо, когда знаешь английский на начальном уровне
@zyrustaferbr4403
@zyrustaferbr4403 Жыл бұрын
nao eh vc que ganhou 3 copa pistão
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 23 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 36 МЛН
Donny Wals: Using Core Data in a Modern SwiftUI Application
41:18
Swift Heroes
Рет қаралды 13 М.
1. SwiftData CRUD Operations
42:40
Stewart Lynch
Рет қаралды 31 М.
SwiftUI List with Custom Cell & Passing Data
36:27
Sean Allen
Рет қаралды 118 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39