Build UI easily with Stack Views
Tinder Firestore Swipe and Match
In this lesson, we'll begin by creating a brand new Single View Application using Xcode 10.1. Make sure to go ahead and download the latest version of Xcode so that you can follow along as easily as possible. With our project now created, let's slowly put together the UI using some UIStackView components. We'll get into some weird issues where sometimes our views don't show up, and we'll also use an anchor extension file that will help us do our jobs a lot easier.

Comments (18)
Kevin Jefferson
4 years ago
Job wel done again !!!! Very Nice start
jwaples
4 years ago
interesting thing that happens for me with this section: let subviews = [UIColor.gray, UIColor.darkGray, UIColor.black].map { (color) -> UIView in let v = UIView() v.backgroundColor = color return v the colors all look like the same shade of grey. Then, when I test what is happening by changing the colors to red, blue, green, respectively, I can see that the colors are there, but super faint, almost like a light that is far away, instead of appearing like a solid color
RichyCode
4 years ago
thanks Brian, what I love best is that fact that everything is coded from scratch, very few do this on youtube, theres always a starter project to download. I feel I learn so much more coding from scratch :-)
TWei
4 years ago
黄总最牛逼 :)
richardbranson
4 years ago
Nice Start.
alialnaghmoush
4 years ago
Very Nice start Brian
Cinquain
4 years ago
Great 1st episode, loving it.
0zgur
4 years ago
thanks Brian
李承諴
4 years ago
hi brian I know when we use "anchor" in Swift , we have to make .translatesAutoresizingMaskIntoConstraints = false but in the red view and yellow view ,we still can use "heightAnchor" why we can did it?
Brian Voong
4 years ago
李承諴
4 years ago
ok I get it but I didn't use the extension and the "heightAnchor" still work that's very weird and confuse me
Brian Voong
4 years ago
李承諴
4 years ago
thank's for your answer and tutorial Brian hope you have a nice day!
Zandro
4 years ago
Hi Brian, i would like to advertise with Google adMob, i would like to display it at the top. Now my question is, how can I add another stack later when ADmbob has loaded. Thanks
SHAWNLUO
4 years ago
hey, why the project doesn't have the icons .... just a layout..
Brian Voong
4 years ago
Rudebwoy0
4 years ago
Why do I get this message (Value of type 'UIStackView' has no member 'fillSuperviw') while trrying to stackview.fillSuperviw()? Please help, Thank you!
niwz
4 years ago
You misspelled 'Superview'.
Rudebwoy0
4 years ago
Brian, is there a reason why I am coding exactly everything you've coded but I am getting errors? please help, thx.
Julia Pak
4 years ago
I’m not Brian (obviously) but I’ll attempt to answer this. I believe the errors have to do with the version of swift you’re using. Keep I mind this video was probably made 5-10 months ago. It’s still relevant code and is not too far “out of date”. So certain methods may be deprecated, and thus changed most likely to something which Apple likes to think of as more straight forward. My suggestion is to see what the suggested “fixes” are by clicking them and trying them out. Also read provided documentation.
Rudebwoy0
4 years ago
I really appreciate you for this Julia. Thank you!
Julia Pak
4 years ago
Hey just curious why you didn’t seem to need to reassign the view in the app delegate file? What I’m referencing is usually when one codes programmatically the view needs to be redirected from storyboard to the main view controller in the app delegate file. Can you explain why this didn’t need to happen? Thanks!
Brian Voong
4 years ago
Julia Pak
4 years ago
Thank you for the “swift” reply. I was a bit confused about that. Gotta think about this a bit more
richardbranson
4 years ago
I am actually revisiting the lessons and enjoying it a lot. Thanks for the course.
Brian Voong
4 years ago
Jaejun Shin
4 years ago
I am very struggling with self-learning code. Thank you for putting your works on here so that you could be my teacher. I LOVE YOU LUV YOU
Brian Voong
4 years ago
Goansu Ahn
2 years ago
한국어 할줄 아시는군요! 깜짝 놀랬어요 I'm suprise that you can speak korean.
BrianVoongLBTA
2 years ago
rezatakhti
3 years ago
Hey Brian, I'm a big fan of your videos as they have tremendously helped me as a beginner developer. I have a question regarding your choice of using UIStackViews. couldn't the "redView" that is the stackview within a stackview been a collection view? Further, couldn't all of the stack views in this video been UICollectionViews? If so, what was your thought process in choosing the stack view as opposed to a collection view? Thanks again and apologies if this is answered in a later video. Reza Takhti
Brian Voong
3 years ago
Rizul Sharma
3 years ago
Hi Brian, am a big fan of your videos i just wanted to know i am planning to buy tinder fire store course, is that made using storyboards or complete code, also is there any sale coming nearby on your website and courses. Thanks Rizul (Rizulsharma16@gmail.com)
HELP & SUPPORT