How to fix UIStackView ambiguity

  Рет қаралды 2,655

Swift Arcade

Swift Arcade

Күн бұрын

In this video I show you four ways to remove ambiguity from your UIStackViews.
0:00 Intro
0:45 The problem
2:00 Hard code the constraints
2:55 Change the intrinsic content size
3:40 Remove bottom pin
4:30 Change the distribution
5:53 Wrap-up
🤖 Source code
github.com/jrasmusson/ios-pro...
🕹 Level up further with these awesome courses
Professional iOS Development
www.udemy.com/course/the-swif...
Data Structures & Algorithms
www.udemy.com/course/the-swif...
Level Up in AutoLayout
www.udemy.com/course/level-up...
Level Up in Swift
www.udemy.com/course/level-up...
Source code
github.com/jrasmusson/swiftui
github.com/jrasmusson/swift-a...

Пікірлер: 7
@maazsurti
@maazsurti Жыл бұрын
Thanks so much for this amazing. Looking forward to more of your courses similar to professional ios development
@Cavejohnson34
@Cavejohnson34 Жыл бұрын
I usually solve a bunch of my problems by changing the compress resistance and content hugging priorities. Works really nicely with labels in horizontal stacks. Another good way to deal with the bottom constraint problem is to make it one of type lessThanOrEqualTo, so the stack can stick to its minimum size, unless it would go over the parent's limit.
@djnecrowman
@djnecrowman 2 жыл бұрын
Thanks a lot for the explanation ) I used only the first 3 of described fixes, and now I will know one more )
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Thanks DJ. I was the same way. I only discovered the fourth once I created this video and looked at the other three :) Cheers - Jonathan
@MarkizBoneco
@MarkizBoneco Жыл бұрын
very useful. Thank you very much.
@andonidasilvaotero9652
@andonidasilvaotero9652 2 жыл бұрын
Great explanations! Please keep posting more 🥰
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Will do. Thx so much Andoni.
Swift iOS How to update your view when keyboard appears
13:11
Swift Arcade
Рет қаралды 10 М.
Grouping network calls like a boss - DispatchGroup
14:35
Swift Arcade
Рет қаралды 3,8 М.
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 19 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 93 МЛН
UIStackView - Get started programmatically in Swift 5
16:52
Rebeloper - Rebel Developer
Рет қаралды 6 М.
iOS Swift Tutorial: The power of UIStackView
20:07
Brian Advent
Рет қаралды 44 М.
Swift - Stack vs Heap
9:58
Swift Arcade
Рет қаралды 7 М.
МУФТИЙ ДАГЕСТАНА О ЗАПРЕТЕ НИКАБА
13:24
Муфтият РД
Рет қаралды 95 М.
CoreData в Swift. Разработка приложений
47:55
simpleDEV. Swift c нуля до бесконечности
Рет қаралды 8 М.
Getting started with the Spotify iOS SDK
27:14
Swift Arcade
Рет қаралды 12 М.
Create StackViews in Swift 5 (Xcode 12, 2020) - iOS Development
11:31
"Stop Using Async Await in .NET to Save Threads" | Code Cop #018
14:05
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,3 МЛН