Coding Review - SwiftUI example with Best Practices - Tips and Tricks - Core Data Preview & Canvas

preview_player
Показать описание
In this video I am going to review another SwiftUI project. I will discuss best practices for SwiftUI and the Swift programming language. We will see how to use Core Data CRUD operations and implement he preview provider to see the canvas.

👉 The original tutorial from Kavsoft is SwiftUI 2.0 Core Data Best Practices - SwiftUI 2.0 Core Data CRUD Operations - Tasks App

You can find the documented project code at

Overview
00:00 Intro
01:18 Dependency injection with Core Data - use for preview / canvas
05:26 flexible frames - how to expand view to full width
20:08 Button Style and sharing view modifiers with custom view modifiers
28:43 Combine in action: sink and subscriptions
33:17 fixing a bug: clean up when view disappears with onDisappear
34:32 Core Data best practices: model extensions to add syntactic sugar
40:06 Swift language: Enum and naming conventions
48:42 Wrap up

If you liked what you learned and you want to see more, check out one of my courses!

#SwiftUI #CoreData
Рекомендации по теме
Комментарии
Автор

This is so great! A lot other channels, mostly non-development, typically critique or discuss other channels' videos. You are the first one I discover doing that for another channels' SwiftUI video and I love it. Learning so much from this and I think this is also what the greater development community should be about: helping one another. I also love your thourough explanations! Thank you

chris_bennett
Автор

there is nothing better than some good refactoring. Subscribed!

djcesco
Автор

This was a fantastic code review. I’m going to share this with my team to improve PR reviews. Looking forward to more

notorioustofu
Автор

Thanks for this code review! As a software engineer new to Swift and SwiftUI, I appreciated learning the real best practices such as Combine, flexible frames, and view modifiers. I hope to see more like this!

jeff.fredrickson
Автор

Thank you! This kind of video is exactly what I need to advance. Please consider making more refactoring / best practices videos.

yusefnathanson
Автор

Nice code cleanup. I also really enjoyed the tips & tricks that you showed.

alexmedvedovski
Автор

This is really great concept. There is a lot to learn from this. Please keep adding more video with "Code Review" concept.

gabrielros
Автор

Wonderful! The technique you use for this video helps my comprehension of what to do and why to do it. Thank you very much!

GaryLutchansky
Автор

Great job. There are ao many great tips here. Thank you! More code reviews would be awesome. There are so many “ Simple” examples that bypass good practices like using enums instead of string compares. The core data helper is fantastic.

lincolndickerson
Автор

Thanks for this. Again, a great video lesson. It’s very useful to see an excellent developer do a code review like this. I learnt lots. Thanks.

johnr.
Автор

Love this kind of video. Very nice channel and very good videos to get better in Swift/SwiftUI

barthom
Автор

Beautiful. Great code review. I have learned a lot with you.

juanparodriguez
Автор

Enjoyed it and looking forward to more of your videos.

encodedlife
Автор

This is an awesome video. You should do more of code reviews and refactoring. It's an great way to introduce new ways to improve code quality resorting to non-real world examples..

bobweiram
Автор

I want my SwiftIUI projects reviewed by you very much. I will send my project as soon as I finished.

emresancaktaroglu
Автор

Hallo und Danke für dieses Tutorial.
Ich habe versucht, alles exakt so nachzuvollziehen. Und: es klappt! Vielen Dank!

P. Plass

peterplass
Автор

Perfeect! Someone actually explaining what the code does, thankyou!! :)

jasperdunn
Автор

Thank you the video. Do you have your own GitHub repo with your completed code?

rillieux
Автор

Thank you for this! You’re the first person I found who even addresses the new auto generated code in core data. I think it’s about 50% more clear now! 😅 Perhaps you could reach out to the original YouTuber and give them tips for updating the tutorial, or if you have the time and desire, make a quick tutorial walking through that auto-generated core data code. Either way thank you again for this video! It’s a great example of a respectful code review. 😊

scribblingink
Автор

Really awesome coding review, I found that when delete a task, context is not saved, should this one be another area need a fix?

bozhang
welcome to shbcf.ru