Auto Layout Constraints in iOS
Вставка
- Опубліковано 22 сер 2024
- Learn how to use Auto Layout to layout elements in UIKit on an iOS device.
🔗Code:
github.com/Sam...
🔗Entire iOS Playlist
• iOS with UIKit
🔗Moar Links
My Website: www.sammeechwa...
Instagram: / meech_ward
Github: github.com/org...
Needed a complete and straight to the point explanation of all this and you nailed it. Thanks for sharing!
You're welcome 🤗
THANKS! I learnt a lot. I did some coding about 5 years ago and forgot absolutely everything, crazy. Anyway, I'm learning all over again. Constraints are a killer to my enthusiasm.
I'm watching this entire playlist and liking them all haha.. awesome stuff man!!
Amazing teacher! Video was so perfect, well done and thank you!
Really well done video. Effective examples communicating complicated concepts with simplicity
Good video🎉❤
the best dev channels are the smallest.
Hi Sam, just found your channel and subscribed. What are your thoughts on programmatic UIs vs Storyboards and what do most start ups or tech companies uses? Thanks in advance.
Honestly, either can be used. A lot of places use programmatic UIs because they're afraid of merge conflicts, but there are solutions to this problem that I cover in this video ua-cam.com/video/BNYrATOT4ic/v-deo.html
I usually use storyboards because less code in a view controller is always a good thing. There are many reasons why I would choose to use storyboards over creating the view programmatically, but that's the main one.
Swift UI is definitely the future of UI in all apple products, so that's where you should be looking if you want to be using the newest and nicest stuff. That being said, when I speak to most large companies, they are not using swift UI yet. Some are starting to add some Swift UI components, but only very slowly. I know some companies that still use Objective-C as their main language, so it's hard to tell what the best thing to learn is for all companies.
Also, while bigger companies building apps natively, startups are generally using react-native. Which is more comparable to swift UI than using UIKit.
So it's a difficult question to answer.
Here's My advice to any programmer looking to be relevant in the industry. Go for quantity over quality. Build lots of things and practice using many different technologies. Release your apps, put them on the app store, and keep building more apps. Try and build lots of different kinds of apps and learn what you need as you build them. You'll get more "real" and valuable experience doing that than just trying to learn the correct way of doing something.
10 years in dev, cool
Do you use UIKit programming in real life or the storyboard?
SwiftUI. But before that, both. I would start by using storyboards then switch to programmatic when needed for animations or more dynamic layout
@@SamMeechWard I tried the programmatic method... It was difficult for me since I didn't know if the element was where I expected it to be until I run. How did you deal with that issue?
@@shaheempp1686 When it gets too difficult, do the angry footloose dance to let off stress
🤗
Good video, thanks a lot! Also, it would be a little simple to just write "labelCenterConstraint.isActive.toggle() and labelTopConstraint.isActive.toggle()" to flip its states
🤗
thanks for your nice tutorial.