Create your first app with SwiftUI and SwiftData
HTML-код
- Опубликовано: 24 дек 2024
- You can find my fundraiser here: www.justgiving... - all donations welcome!
Get the code here: github.com/two...
December 22nd is my birthday, and as usual I'll be live-streaming building a complete SwiftUI project from scratch to help raise money for folks who are experiencing homelessness. Come along to learn lots of Swift, SwiftUI, and SwiftData, get your questions answered, and also contribute to a great cause.
Thanks Paul, have watched this live from the start, great livestream, thanks again!
Thanks Paul for your time on this important day!
I can't believe that. I shipped an app only by watching this video!
Paul, I’m obviously watching this months later, but I donated to this worthy cause. Thanks for your support of those in need.
Happy birthday, Paul! Thanks for all the good things you do and for bringing the fun to func 😊
This video helped explain SwiftData well. Thanks so very much. Now I've got to go switch from passing the model context to my data service where I did update on the main thread, to sharing the container instead.
Paul, It is months later but I want to let you know that I found this tutorial VERY clear and consequently VERY helpful. I had watched other tutorials and none were as clear as this one. A BIG thank you!!!
Hello. Your content is very valuable to me and I want to follow it constantly. I would appreciate it if you had the chance to set the videos with subtitles. Because I am Turkish, my English is not very good. I would like to watch the video with subtitles and benefit from your information. Thank you again for sharing your valuable information with us.
Paul. Late but see the video. Thanks a lot for your trmendous teaching work. Astonishing, Superb.
thanks Paul, this is great
belated happy birthday 🍻
and thanks for the great content
Happy birthday Paul!
Great video! do you or could you make a video on how to use the documentation ? I find it hard to what are all the options that can be passed into a functions or method. For example Lets say I create a button and add .Frame and .Padding. I could I find where all the other options are in the documentation. Not just for the button but for others as well.
Thanks Paul. Could you also make a video SwiftData with MVVM, Restful API and Network Monitor (Online/Offline) when it saves data before offline? Please 🙏
You are the best. Could you also make a video SwiftData with MVVM architecture?
As usual, great walkthrough of some complex topics. Much appreciated.
I tried adding "@Binding var navigationPath: NavigationPath" to your PeopleView. But that breaks in the initialiser because i'm not initialising it. Tried adding it as a parameter to the init method, but couldnt get it right. Perhaps the @Binding macro makes the syntax more complex?
Paul, great tutorial - but question (for anyone :-) ). In another very similar tutorial, you sugegsted using a function for deleting destinations using _ indexSet: IndexSet whilst here you use at offsets: IndexSet. What was your rationale for the different functions for what seems very similar tutorials? Cheers!
Great content!
Hi Paul! I find this video very good! I have a question for you: I'm creating an app based on your example but when I get to the creation of the EditPersonView it gives me an error: "Struct 'ViewBuilder' requires that 'EmptyTableRowContent' conform to 'View'" and "Static method 'buildExpression' requires that 'some View' conform to 'TableRowContent'" near the TextField lines of the name
Can you help me? Thanks!
This was very informative. would there be a similar way to bring in Pdfs stored in Books app much like you did for photos? im trying to link to a stored pdf
Regards
Any chance to OBSERVE CHANGES outside of SwiftUI?
I need to build a Synchronizer logic which works silently, just to explain there is a case where I really don't need a view.
Hi Paul,
I have one question about sortDescriptor. It is possible add in one menu inside the toolbar, insert a tag for bool value?. Because i have the bool value in my model class. Ps: sorry for my english
@twostraws One thing I noticed is after creating either a Person or Event with a blank name property since they are already created they persist after pressing the "Back" button and can be hard to delete. I am searching for a way to automatically delete objects with blank values (like in Apple's Notes app when a note has no value it gets deleted), but yet to find a solution. Is there an elegant solution to do this?
Thank you, Paul
Amazing as always!
Hi Paul, great video!
Is there a way to construct more complex #predicates?
In a CoreData app I used CompoundPredicate to construct a NSPredicate from a view, that allowed a user to compose a query.
Is there a way in SwiftData to do something similar?
does anyone know how you would load multiple images into swift data?
can i persist swift. data with a firebase backend?
Legend!
If I tap to add a new person or location and don’t enter anything the app saves the new blank location or person. Is there a way to prevent that?
I had the same question. Perhaps you could do a custom "Back" button and do a check in the edit screen for blank name or something. I would love to see how this really should be handled with the default "Back" button as you leave edit screen. Let us know if you found a way...
i am getting distracted love man 🐕
where can I get the source code ?
👏
🎂
swift data is just in memory aint it or can it be persitted on phone
it´s persisted via SQLite
swift-data, why did not you start with the fact it is not mvvm friendly, and not usable for real life aps...?
Great, great video but nothing can beat your two Sammies 🥰 I had one for 13 years, passed ten years ago and I still miss him everyday 🥲