Laying out views with ContainerRelativeFrame in SwiftUI

Опубликовано: 07 Июль 2024
на канале: Stewart Lynch
2,302
149

In this video, I want to return to my Deeper Understanding series and dig into the ContainerRelativeFrame view modifier for SwiftUI.

It is a powerful modifier, but there are some things you need to be aware of before you start to implement it in your own projects.

If you want to support my work, you can buy me a coffee :) 
https://ko-fi.com/stewartlynch 

******* Download my StewartLynch YouTube Channel Application - Free ********** 
https://stewartlynch.gumroad.com/l/obsjz T

Table of Contents: 
0:00  Introduction
1:58 The Basics
4:45 Relative Sizing View
8:05  More Relative Sizing
10:05 Count and Span
12:35 Image Carousel

 Starter Project Files: 
(If you are having problems downloading zip files, use Safari. Chrome restricts zip files by default) 
   https://github.com/StewartLynch/Conta...

Completed Project: 
https://github.com/StewartLynch/Conta...

References mentioned in video: 
GeometryReader
   • SwiftUI GeometryReader  

Enhancements to ScrollView in iOS 17
   • Enhancements to ScrollView in iOS 17  

Image Carousel Views
   • Image Carousel in SwiftUI  

Recommended Resources: 
RocketSim - Build Apps Faster 
   https://gumroad.com/a/122988499/ftvbh 

BigMountain Studio Books 
SwiftData Mastery in SwiftUI 
   https://www.bigmountainstudio.com/swi...
SwiftUI Views Mastery 
   https://www.bigmountainstudio.com/vie...
SwiftUI 5 Book Bundle 
   https://www.bigmountainstudio.com/boo...
Combine Mastery in SwiftUI 
   https://www.bigmountainstudio.com/com...
Core Data Mastery in SwiftUI 
   https://www.bigmountainstudio.com/cor...
SwiftUI Animations Mastery 
   https://www.bigmountainstudio.com/ani...

Other References: 
Stewart Lynch's YouTube Channel: 
      / @stewartlynch   
Stewart Lynch on Mastodon: 
   https://iosdev.space/@StewartLynch 
Stewart Lynch On Threads: 
   @StewartLynch 
Stewart Lynch on X: 
   https://x.com/StewartLynch 
Stewart Lynch on LinkedIn 
     / stewartlynch