I've looked at 3 books, and two paid courses, and Apple's own SwiftUI tutorial, and this is the best approach by FAR! Also, way better than anything I've seen on UA-cam. Well done!
Brilliant! I was doing "Hacking with swift UI" by Paul Huson before this but your explanations are way better and intuitive. Plus, you cover everything around the feature your are explaining with such ease and clarity.
Holy shit dude! You are changing lives. You are demystifying this like crazy. I didn’t even know you could that in SwiftUI. I learned about swift basics but didn’t know the SwiftUI and swift structures were that same in the sense that they can have initializers. Gears are turning in my brain. Thank you!!!!! I can’t thank you enough.
My friend, I was about to give up SwiftUI and start studying Flutter😅, but thanks to your videos I have learned in a few days what I could not internalize in months. Thanks!!
Dude this series is amazing. Im gunna make sure and give you a shout on some socials, these tutorials are just so ridiculously well done and should be top of the heap for people learning. Thanks for making them🤘🏻
Eu sou br e acho q ngm vai ler isso, mas namoral que série perfeita, finalmente entendi para oque serve enums, nunca soube para o que era, valeu cara, tu tá me salvando muito.
This video caused some light bulbs 💡 to go on in my head , as simple as it was but it really helped me to connect some dots. thank you so much for the quality content.
As per discussion in 11:26, SwiftUI is not just "smart" - it works across Swift as a language: "Swift provides a default initializer for any structure or class that provides default values for all of its properties and doesn’t provide at least one initializer itself." This bootcamp is the greatest thing that exists for iOS developers - not only juniors, but seniors like me as well.
Yep, correct and also I believe since all views in SwiftUI are struct, and in Swift struct created automated designated initializers, that's why no need to write the init implementation so far
Man, everything about this course is super helpful. However I'm glad to did a Swift programming course before this. I believe learning and mastering SwiftUI is already a daunting task without having to learn the language simultaneously.
You know the funny part, this wouldn’t been a lot harder video, if I wasn’t already a UIKit developer who just came here to learn SwiftUI specifics in depth, so far the course is extremely well organised, especially for me because I like to do it slow but in depth.
To a lay person this subject appears quite daunting. However, as with all your previous videos Nick, your teaching style makes it much less overwhelming.
It is all related to Swift on to SwiftUI. Very basic level. Unluckily, I'd already known this stuff before watching, unluckily because the explanation is flawless even in X2.
Once again I haft commend you on your approach. If you ever start some sort of support or consulting offer I would be very interested. Plus I believe by the end of this course I will be able to do my very unique app for which there is nothing else out there. Many thanks!
@@SwiftfulThinking Yes, I´ll start watching intermediate level, this level I just repeat again by jumping...-:)) but some point very useful and new for me... I like how you can observe from different corners... keep going Nick, I told you - you are smart...
Hi there, thanks very much for these very helpful videos. I completely followed along the whole way through. I was just surprised we could change the view through the PreviewProvider (struct InitializerBootcamp_Previews) as opposed to only struct InitializerBootcamp: View. Is this a common practice or is it unlikely we would need to change the views in the PreviewProvider? I just imagine it getting complicated if the UI was complex and had a lot of components.
I created an initializer that creates a row for a list. I created this same row before without the initializer but I think the code looks neat when its created as an initializer. this is where I find a problem,. on the last row I created, I was able to create an image that has an on tap gesture which updates the ui for the row. pretty much a subscription icon that changes color depending on what state the subscription is in. the function to update this ui is from a view model. do I add this function in the view where the instance was created and how? or do I add this function when I call the initializer in a different view within a list?
Hi! Thanks for the video. Did everything as you said till 7:04, but after resume the system says: missing argument for parameter ‘backgroundColor’ in a call… what that might mean?
Haha that's how enums work! We create an enum with a bunch of different options and then when we go to add one, Xcode automatically gives us the autocomplete with all of the options. I highly recommend using enums as much as possible!
self refers to the object that you’re in. So if your within a class and you call self, you’re referring to the parent class. I’ll try to do a video on this soon!
@@SwiftfulThinking Thank you so much!! I'm learning swiftUI so well thanks to you!! You have so good pronuciation that me, Korea student can easily understand the video Thanks!
No you don’t need to use self. I was doing that to be clear in the tutorial that self. refers to the variable in the struct and not the variable passed into the struct (since they have the same name)
Wrote exactly the same code as in the video, but an error occurs "missing arguments for parameters "backGroundColor", "count" , "title" in call. Help pls
I've looked at 3 books, and two paid courses, and Apple's own SwiftUI tutorial, and this is the best approach by FAR! Also, way better than anything I've seen on UA-cam. Well done!
Thanks Mark 😁 let me know if you have questions!
same here, finally got out of tutorial hell with his explanations
Brilliant! I was doing "Hacking with swift UI" by Paul Huson before this but your explanations are way better and intuitive. Plus, you cover everything around the feature your are explaining with such ease and clarity.
You deserve an Oscar I've been learning SwiftUI from you so far since the first step ..
I understood init() for the first time :)
Thanks mate!
I could not be happier to hear that! It can definitely be confusing, but doesn't have to be :)
The init discussion at 11:00 is very helpful.
Holy shit dude! You are changing lives. You are demystifying this like crazy. I didn’t even know you could that in SwiftUI. I learned about swift basics but didn’t know the SwiftUI and swift structures were that same in the sense that they can have initializers. Gears are turning in my brain. Thank you!!!!! I can’t thank you enough.
Hahaha if you thought this one was crazy just wait 😎
The pace is not too fast nor slow. It is just perfect.
Haha thanks Yuchen :)
as always the best lessons on youtube ever
My friend, I was about to give up SwiftUI and start studying Flutter😅, but thanks to your videos I have learned in a few days what I could not internalize in months. Thanks!!
Hey Pablo! I'm glad you stayed with SwiftUI! I think it's a much smarter path to go down :)
You are literally amazing, thank you for all your hard work and videos. I have learned more from your videos than reading documentations 🙏🙏🙏
The ios courses I take on other places, nothing is as clear as your explanations. This is by far the best. Thank you for your effort.
Thank you!!!
Dude this series is amazing. Im gunna make sure and give you a shout on some socials, these tutorials are just so ridiculously well done and should be top of the heap for people learning.
Thanks for making them🤘🏻
Haha thanks glad you’re liking them 🤙
best course ever. you my friend are a gentleman and a scholar. I salute you.
This is the best video I've seen on youTube.
All of UA-cam? 😂
Just a stupid comment for precision's sake. The forward slash is this /, and the backslash is this \. Thank you for your excellent course.
Eu sou br e acho q ngm vai ler isso, mas namoral que série perfeita, finalmente entendi para oque serve enums, nunca soube para o que era, valeu cara, tu tá me salvando muito.
It is the best education set I have ever seen. Thank you...
I can't believe that's actually free! Thank you man! Your videos are BY FAR the best!
This video caused some light bulbs 💡 to go on in my head , as simple as it was but it really helped me to connect some dots. thank you so much for the quality content.
As per discussion in 11:26, SwiftUI is not just "smart" - it works across Swift as a language: "Swift provides a default initializer for any structure or class that provides default values for all of its properties and doesn’t provide at least one initializer itself."
This bootcamp is the greatest thing that exists for iOS developers - not only juniors, but seniors like me as well.
Yep, correct and also I believe since all views in SwiftUI are struct, and in Swift struct created automated designated initializers, that's why no need to write the init implementation so far
I really liked this video. This was a high level but understandable yet useful high level code video.
watching your class from Korea. You're the best :) Thanks
Hello Korea! 🤙
Day 2 of learning and really enjoying it. Thank you for such an amazing course.
I’ll watch for your comments as you go! Good luck 🤙
Man, everything about this course is super helpful. However I'm glad to did a Swift programming course before this. I believe learning and mastering SwiftUI is already a daunting task without having to learn the language simultaneously.
I am so happy that I've found your channel. Thanks a lot Nick
Glad you enjoy it!
Thanks for the explanation of init(). Totally helpful. You smashed it and has become easy for beginners.
You know the funny part, this wouldn’t been a lot harder video, if I wasn’t already a UIKit developer who just came here to learn SwiftUI specifics in depth, so far the course is extremely well organised, especially for me because I like to do it slow but in depth.
To a lay person this subject appears quite daunting. However, as with all your previous videos Nick, your teaching style makes it much less overwhelming.
I really appreciate these comments. Thanks for watching Rob! This is probably the hardest video in the series so far haha
You're an amazing teacher! Cannot thank you enough for helping me understand init() :)
Very helpful! Thanks again.
It is all related to Swift on to SwiftUI. Very basic level. Unluckily, I'd already known this stuff before watching, unluckily because the explanation is flawless even in X2.
I am watching from the bottom. thank you for your effort
Loved this tutorial! So clear and helpful.
thank you for sharing you knowledge 😘
Just Wow, Big Love you Bro
❣
I loved this video so much!
Once again I haft commend you on your approach. If you ever start some sort of support or consulting offer I would be very interested. Plus I believe by the end of this course I will be able to do my very unique app for which there is nothing else out there. Many thanks!
Thanks Craig! I'm just glad someone's learning something. It makes making these videos all worth it!
Awesome video!!!
Thanks!
Very useful, thanks
THANK YOU SO MUCH NICK❤🔥❤🔥
Great examples eh. One always knows what's going on 🙂
Thanks for this video.
Wonderful video
great video. Thank you
Great video! Thanks
Glad you liked it! Thanks for watching David.
Great content! Thanks. And maybe you would want to change the link of the next video, when I hit on that link, it takes me to this very same video.
Thanks for letting me know 😅
keep doing what you doing
Super clear 👍😎
Thank you good tutorial...
Haha thanks Andrej! You don't watch them in order do you 🧐 haha
@@SwiftfulThinking Yes, I´ll start watching intermediate level, this level I just repeat again by jumping...-:)) but some point very useful and new for me... I like how you can observe from different corners... keep going Nick, I told you -
you are smart...
Hi there, thanks very much for these very helpful videos. I completely followed along the whole way through. I was just surprised we could change the view through the PreviewProvider (struct InitializerBootcamp_Previews) as opposed to only struct InitializerBootcamp: View. Is this a common practice or is it unlikely we would need to change the views in the PreviewProvider? I just imagine it getting complicated if the UI was complex and had a lot of components.
good bro..😊
Thank you!!!
good video
Thanks Vortex!
Hello thank you for lessons but i have some error (missing arguments for parameters 'backgroundColor', 'count', 'title' in call)
Thank you for the video
Thank you Ярослав!
Was a Switch statement not used because this is a beginner course or is there another reason for it?
Why does it also require me to have an input parameter in the @main WindowGroup file and yours doesn't?
I created an initializer that creates a row for a list. I created this same row before without the initializer but I think the code looks neat when its created as an initializer. this is where I find a problem,. on the last row I created, I was able to create an image that has an on tap gesture which updates the ui for the row. pretty much a subscription icon that changes color depending on what state the subscription is in. the function to update this ui is from a view model. do I add this function in the view where the instance was created and how? or do I add this function when I call the initializer in a different view within a list?
How do you make two frames show by putting it twice in the PreviewProvider? I have to put them in the original @main file twice.
Holy jesus.. there are two preview screens .. One for the App and one for the current window.
Hi! Thanks for the video. Did everything as you said till 7:04, but after resume the system says: missing argument for parameter ‘backgroundColor’ in a call… what that might mean?
the same here. did u solve it?
At 17:30 you say “when we type a period” how would I know that?
Haha that's how enums work! We create an enum with a bunch of different options and then when we go to add one, Xcode automatically gives us the autocomplete with all of the options. I highly recommend using enums as much as possible!
cornerRadius will be deprecated, instead we will be possibly using clipShape rectangle
Can you please teach me what self. means?? I'm really confusing..
self refers to the object that you’re in. So if your within a class and you call self, you’re referring to the parent class. I’ll try to do a video on this soon!
@@SwiftfulThinking Thank you so much!! I'm learning swiftUI so well thanks to you!! You have so good pronuciation that me, Korea student can easily understand the video Thanks!
@@user-goldeneunga Hello from across the world 👍
Self is the same as this in other languages
Like dart java ...
Return from initializer without initializing all stored properties i got this error
Missing argument for parameter backgrouncColor in call.
6’57 : why it doesn’t work for me when I fill the previews ?
What error message are you getting?
At 8:05, that's a backslash, not a forward slash. ; )
lol oops -__-
What's wrong with this code please ? 🤔
struct ContentView: View {
let name: String
var body: some View {
Text(name)
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView(name: "john")
}
}
Hello! I copied and pasted the code and it works fine. I don't see any issue. Are you getting an error message?
@@SwiftfulThinking Now suddenly I works...Very weird 🤔...thank you and keep going...Your videos are powerfull!!!
does this not work in 2024?
Do I always have to use self.something when the conditional is within an innit? Is there another video explaining the use of self.?
No you don’t need to use self. I was doing that to be clear in the tutorial that self. refers to the variable in the struct and not the variable passed into the struct (since they have the same name)
@@SwiftfulThinking thanks! It makes sense now
It's not that hard if you know Swift language and switched from C#.
\ = backslash
I only bring it up cuz I was listening and typing and following along and I typed it wrong lol
💔😅
I’m learning too 😂
@@SwiftfulThinking hahaha! Stay reachable 😂
these two things I avoid: I guess it's time to learn...
Wrote exactly the same code as in the video, but an error occurs "missing arguments for parameters "backGroundColor", "count" , "title" in call. Help pls
The source code is on my GitHub @SwiftfulThinking
@@SwiftfulThinking you're the best, thanks
Thank you!
Clear and to the point 🫡
Thanks Again , you are very helpful for us 🤎🤎
Great Video! Thanks
good video