If you're enjoying this video, I think you'll like my book that takes a deeper dive into examples just like this: app.gumroad.com/products/tcvck/
@bhargavvasist5919 Жыл бұрын
I think it'd be cleaner if we have didSets for both our undo and redo arrays where buttonState is modified instead of calling the updateButtonState function inside the addButton. Would love to see more videos
@AkarthikeyaReddy8 ай бұрын
This What I Thought About
@evgeshaky2 жыл бұрын
why in "addSquare" function we use global var "selectedColor" instead of passing parameter "color"? very fun task to implement! thank you!
@RickChenPlus2 жыл бұрын
I love it. thanks for your sharing, I think this topic can very easy to know, does candidate have basic knowhow with UIKit. 👍
@david-tracy2 жыл бұрын
Thanks chief. Why did u put the ibaction and helper function in the extensions though? And why in separate extensions?
@vladimirnqgolov42272 жыл бұрын
Thank you for sharing your interview experience! You will have duplicate bug with text if you add subviews in-between Redo's. You should update the label.text value for each sequential labels displayed for that colour (maybe 'for label in Int( Int(lastLabel.text) - 1) ..< undoLabels.count) in redoPressed function. I hope the interviewer didn't test it that much and you got the job, cheers!
@inoviscope2 жыл бұрын
Why create a new stack and not use view.subviews as the stack? then remove from super view for undo and the clipboard stack will only hold the delta?
@mohammadhakim93372 жыл бұрын
we want more videos like this!
@mohammadhakim93372 жыл бұрын
I think it'd be best to clear the redo stacks when you add a new square, but I don't think that's a part of the task, is it?
@lifeofram5156 Жыл бұрын
It was nice bro, please add some more videos❣️
@madhuripatwal42653 жыл бұрын
Nice question and solution Thanks for sharing 👍
@abhisharda21603 жыл бұрын
Keep it coming!!
@federicodominguezdaniel2 жыл бұрын
Great work ! I love it.
@mohamedsaber60793 жыл бұрын
Great work!! Keep it up 👍🏻
@mohamedsaber60793 жыл бұрын
I absolutely loved it!!
@maxmiranda62982 жыл бұрын
Genuinely very fun question, well done! Only recommendation for the future with these types of videos is make sure to make it possible for people to follow along at home (e.g. attach videos of expected behavior so people can watch at their own pace rather than relying on what you show & adding in stoppage points where people can go do the stuff on their own).
@AryamanSharda2 жыл бұрын
That’s a great point! I’m glad you enjoyed the video. I’ve been working on an iOS interview prep book that allows people to set their own pace. I released this video a bit earlier to accompany the content in the book. Point totally taken though, I’ll make sure to structure future videos like that 👍
@aprilsmith37432 жыл бұрын
9:57 you’re saying that the label is being removed in fact it’s being added. Looks like you copied it from undoPressed and forgot to update the comment