The one trick every iOS developer should know for working with Stack Views

  Переглядів 3,726

Swift Arcade

Swift Arcade

День тому

In this video we look at a great trick for making sure your UIStackViews layout properly, with no ambiguity in Auto Layout.
Level Up Courses
Level Up AutoLayout
www.udemy.com/course/level-up...
Level Up in Swift
www.udemy.com/course/level-up...
Data Structures & Algorithms
www.udemy.com/course/the-swif...
Twitter
@jrasmusson

КОМЕНТАРІ: 22
@wolvrG
@wolvrG Рік тому
This has been a live saver. I am using programatically UI and was eating my head figuring out where I am doing wrong. Finally fixed it. Thanks a lot
@captainmichaelj2321
@captainmichaelj2321 2 роки тому
This is absolutely fantastic trick, I am a beginner developer and have been using storyboards and stackviews. Definitely very useful! thanks for the video.
@swiftarcade7632
@swiftarcade7632 2 роки тому
Thanks Captain. May it serve you well :)
@pulisichhh
@pulisichhh Рік тому
Thank you so much, I just had the same problem. For some reason if say a vertical stackview has verical and horizontal intrinsic content sizes it will break even if setting it as lessthanequal to its container. Setting the priority to anything less than required removes the conflict and also applies it. I guess USV has some default constraints @ 1000 which create a temporal conflict at compile time but gets fixed at run time, either way it's better to avoid ambiguity. Thanks again!
@DaveJacobseniOS
@DaveJacobseniOS 2 роки тому
Beautiful! Thanks as always.
@swiftarcade7632
@swiftarcade7632 2 роки тому
Most welcome. Thx Dave.
@RomaAnistratenko
@RomaAnistratenko 2 роки тому
Thanks for this neat trick !
@swiftarcade7632
@swiftarcade7632 2 роки тому
Hey no problem. Most welcome.
@user-tq4fv8ie6q
@user-tq4fv8ie6q 2 роки тому
Useful nugget, thanks
@swiftarcade7632
@swiftarcade7632 2 роки тому
Most welcome.
@vikas_.
@vikas_. 2 роки тому
I learnt something new. I was literally getting these error when ever i do a UI implementation
@swiftarcade7632
@swiftarcade7632 2 роки тому
You are very welcome Sinamsetty. Thanks for stopping by.
@3ilz
@3ilz 2 роки тому
How would you do this programmatically?!
@swiftarcade7632
@swiftarcade7632 2 роки тому
You would create an extension like this and set the priority on the constraint to be something less than 1000. public extension NSLayoutConstraint { @objc public func setActiveBreakable(priority: UILayoutPriority = UILayoutPriority(900)) { self.priority = priority isActive = true } }
@tylerluck1485
@tylerluck1485 2 роки тому
Hi Jonathan, Is there a way I can contact you relating to a consulting opportunity? Thank you, Tyler
@swiftarcade7632
@swiftarcade7632 2 роки тому
Hi Tyler - I am pretty busy at the moment. But if you are still interested around March in the new year drop me a new and we can chat. Cheers.
@tylerluck1485
@tylerluck1485 2 роки тому
@@swiftarcade7632 Jonathan, thanks so much for the reply! *and no problem on your availability for next year. Would you open to 15 minutes this week for a chat? (Again, I understand you’d be aiming for next year). Thank you, Tyler
@shurale85
@shurale85 2 роки тому
Great! and pls less music, u have nice diction, so no need for background sound)
@swiftarcade7632
@swiftarcade7632 2 роки тому
Thank Shurale85. Will keep that in mind.
@aleksekokorev
@aleksekokorev Рік тому
1. Please, record only the xcode window, not the all desktop. 2. The mouse pointer would be easier to follow (visually), if it will be highlighted. Also, would be a very nice to highlight the mouse clicking.
How to block emojis from entering UITextView
4:55
Swift Arcade
Переглядів 2,3 тис.
The secret to the UIScrollView
11:44
Swift Arcade
Переглядів 11 тис.
LIVE - Парад Победы в Москве. 9 Мая 2024
2:27:56
AKIpress news
Переглядів 2,2 млн
Getting started with the Spotify iOS SDK
27:14
Swift Arcade
Переглядів 11 тис.
Swift - Stack vs Heap
9:58
Swift Arcade
Переглядів 6 тис.
Swift iOS How to update your view when keyboard appears
13:11
Swift Arcade
Переглядів 10 тис.
Using Stack Views and Auto Layout - raywenderlich..com
7:11
Kodeco
Переглядів 26 тис.
How to squash and rebase in git
6:02
Swift Arcade
Переглядів 10 тис.
Swift: Auto Layout Content Hugging Priority (Demystifying iOS) - 2021
12:33
Create StackViews in Swift 5 (Xcode 12, 2020) - iOS Development
11:31
iOS Academy
Переглядів 14 тис.
Grouping network calls like a boss - DispatchGroup
14:35
Swift Arcade
Переглядів 3,7 тис.
What are Container View Controllers?
14:30
Swift Arcade
Переглядів 2,7 тис.
Какой телефон лучше всего снимает? 🤯
0:42
Which Phone Unlock Code Will You Choose? 🤔️
0:14
Game9bit
Переглядів 6 млн
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43