In this video, we learn about frames in SwiftUI and why they are important to understand.
We start with a simple text view and look at intrinsic content size to understand why a view appears the way it does. We then add backgrounds and frames to see how frames act as containers rather than changing the size of the content itself.
We cover:
Intrinsic content size
How frames work as containers
How content is added into a frame
Aligning content inside a frame
Nesting multiple frames
Using fixed width and height
Using maxWidth and maxHeight with infinity
How parent views affect frame size
We finish with a recap of how frames work and how they are used to control layout as interfaces become more complex.
Timelines
00:00 Introduction
00:17 Intrinsic Size
01:38 Frame
03:17 Frame Alignment
05:14 Flexible Frame
08:23 Recap
Say Hi on Social Media:
LinkedIn: /
Instagram: https://instagram.com/its_macco?utm_m...
Twitter: / its_macco