GeometryReader is commonly used to control the size of a View w.r.t its parent View/container. Let's explore a simple ViewModifier in iOS 17 that makes this so much easier and nicer to read.
π LaunchBuddy: https://apple.co/3iFcjjW
π Try CWC+: https://bit.ly/cwc_flo
βοΈ Buy me a coffee: https://ko-fi.com/flowritescode
Join this channel to get access to perks:
https://www.youtube.com/channel/UCYt_AtiKPyda44NYzwABvQQ/join
π Links: https://flowritesco.de
π Forge: https://apple.co/3riG8MQ
Chapters:
0:00 GeometryReader Example
2:10 containerRelativeFrame
Affiliate Links β€
π SwiftUI & Combine Books: https://www.bigmountainstudio.com/a/tpgmp
π¬ Get Reports about your apps: https://appfigures.com/r/5by3g
π Privacy focused analytics: https://dashboard.telemetrydeck.com/registration/organization?referralCode=27AOWO4R1TTEJBST
π» The most powerful mac app for developers: https://devutils.app/?ref=flo
βοΈ Support me: https://ko-fi.com/flowritescode
If you have any video suggestions please feel free to let me know by a comment.
Get in contact via
Twitter: https://twitter.com/FloWritesCode