Hey, thanks for the great content! One question - I see that navigation pushes are handled. What if I need to present VC modally - how to handle it better using Coordinator pattern?
I noticed that you define var coordinator: Coordinator? some tutorials I've seen that they use weak var coordinator: Coordinator? doesn't yours retain cycle? I tried adding weak but I think the reference was broken and the navigation was not working anymore.
I haven’t watched the whole video just yet, disclaimer in case you mention it, but a quick note when you import UIKit it automatically imports foundation so importing foundation is redundant
Why is this comment on so many swift related videos? Sure it's true, but it also does not really matter, it's not like foundation is imported twice or there is any overhead also it's not the focus of the video.
How it is better than just to define a static function show(from: UIViewController)? Also does it mean that you have to apply this coordinator pattern to all of your controllers in project?
Just great! Thank you for your hard work. Somehow the quality of the video got worse, I mean the resolution got not that sharp as before, I thing when exporting from the video the resolution should be changed
hi can you do a video on programmatically create control like textField, textView ,imageview base on json file. This mean json contain the info on what control to create and add all control into a form which can be scroll. Thanks
Hey! Could you talk about algorithm and how you implement it into a swift project in Xcode? Don’t talk about the fundamentals, just how to implement it please !
Hey Afraz, I currently have an issue with Xcode where it crashes when I run any of my projects on a phone. Looked it up and tried every solution but nothing seems to fix that, have you encountered this before?
When I use weak in this code from the video, it doesn't navigate to other views. Theres any other configuration that must be done together that am I missing?
Great Course! Thanks a lot. Can you show us a tutorial also how to pass data between controllers using a coordinator? btw I think your audio is too low compared to most of youtube videos out there. Every time I opened your vids your audio for your voice is low. Might want to check that out. Thanks again!
Oh no. Not another pattern. And it's 21 mins too....! What about KVO pattern? Everywhere it says I should know KVO pattern for interviews and at the same time they say nobody uses it.
Would have been good to see how the co-ordinator passes model data to/from the VC’s.
I've personally used the delegate pattern to pass objects around between View Controllers via a coordinator.
Finally a good tutorial that is nicely explained and up to date, kudos.
Thanks!
Paul Hudson: "ughmmm...."
Very nice and clear explanation 👏👏
Thanks!
Great vid, I now love this pattern
Thanks!
Super. I was just looking for this
Glad I could help
Why did you write the same code in both scene delegate and app delegate. I thought the scene delegate along would be enough.
Hey, thanks for the great content! One question - I see that navigation pushes are handled. What if I need to present VC modally - how to handle it better using Coordinator pattern?
You’re the best
Haha thanks!
I noticed that you define var coordinator: Coordinator?
some tutorials I've seen that they use weak var coordinator: Coordinator?
doesn't yours retain cycle? I tried adding weak but I think the reference was broken and the navigation was not working anymore.
Yeah it should be weak, I noticed that too.
love it! Keep making more videos!
Thanks
Coordinating controllers must have a property by the name of coordinator as a weak reference, mustn't they?
I haven’t watched the whole video just yet, disclaimer in case you mention it, but a quick note when you import UIKit it automatically imports foundation so importing foundation is redundant
Why is this comment on so many swift related videos? Sure it's true, but it also does not really matter, it's not like foundation is imported twice or there is any overhead also it's not the focus of the video.
@@tokero5199 I don’t know man, it was one of my pet peeves 🤣
How it is better than just to define a static function show(from: UIViewController)?
Also does it mean that you have to apply this coordinator pattern to all of your controllers in project?
Great video mate, would u mind do the mvvm-c as well?
Sure!
Great video! Thanks a lot.
Glad you liked it!
Just great! Thank you for your hard work. Somehow the quality of the video got worse, I mean the resolution got not that sharp as before, I thing when exporting from the video the resolution should be changed
Thanks and yeah Im experimenting with different recorders
Great intro! I would like to see more on this. Thanks!
Coming soon!
can i imlement to swiftui peoject this pattern? Would it be correct to use it with SwiftUI?
i personaly dont see the ise of this pattern in swiftUI, it’ll complicate things
but hey, who am i to judgr
@@dewigesrek5651 Thank you for your response. I think like you for Coordinator pattern with SwiftUI. Finally, your thoughts are valuable. ;)
I love this, thanks!
Thanks!
hi can you do a video on programmatically create control like textField, textView ,imageview base on json file. This mean json contain the info on what control to create and add all control into a form which can be scroll. Thanks
Thanks Afraz.
Youre welcome!
Hey! Could you talk about algorithm and how you implement it into a swift project in Xcode? Don’t talk about the fundamentals, just how to implement it please !
Yep! On my list
lit code man for code wars
Impressive. Very nice.
thanks
If the project does not require Navigation Controller?
Hey man, thanks for the video. How would you implement case Event when you do need to pass some parameter in order to initialise our VC?
I think you can pass data along with enum parameter. Ex: orderButtonTapped(_ data: String)
exactly
how to does this work in swiftui?
Hi. Thanks for this! Do you have a public repo for this particular project?
All code is available for channel members. Its how I keep the content going
Great!!!!
Thanks
How to pass data from second view controller to first view controller using coordinator pattern?
You can pass a closure
Hey Afraz, I currently have an issue with Xcode where it crashes when I run any of my projects on a phone. Looked it up and tried every solution but nothing seems to fix that, have you encountered this before?
#retainCycle - use weak var in your controllers.
Correct
When I use weak in this code from the video, it doesn't navigate to other views.
Theres any other configuration that must be done together that am I missing?
How to pass the data from one view to another?
Great Course! Thanks a lot.
Can you show us a tutorial also how to pass data between controllers using a coordinator?
btw I think your audio is too low compared to most of youtube videos out there. Every time I opened your vids your audio for your voice is low.
Might want to check that out. Thanks again!
Thanks, yep newer videos have raised volume
Just send data with the enum in coordinator as associated type, there is not too much to it
read comments there is the exact same answer I've just given
Why do you always removing Storyboards?
Because he's doing the UI programmatically (using code).
Because they suck...
you could do:
let vc = SecondViewController()
vc.coordinator = self
instead of:
var vc: UIViewController & Coordinating = SecondViewController()
vc.coordinator = self
Yep
14:00
Coordinating should be AnyObject, you don't need to make it var
Oh no. Not another pattern. And it's 21 mins too....! What about KVO pattern? Everywhere it says I should know KVO pattern for interviews and at the same time they say nobody uses it.
The coordinator pattern is used a lot in real world projects for apps and apis, it is a good one to learn.