I don’t think this modifier works relative to the parent view like geometry reader does. Instead it works relative to a container which is a window, scroll view or navigation stack
This is a good example! I did learn recently however that although this modifier will work on most things like List and NavigationStack, it does not work on some things like HStack or VStack.
Awesome Flo - thank you for the clear demo! I didn't know about his modifier! I'd image I'll use it for all sorts of things, including a custom bottom sheet (when your app doesn't support the SwiftUI iOS version to use detents) combined with ScaledMetric or something. Anyway, thanks again!
@@FloWritesCodeist .animation nicht veraltet? Ansonsten sowohl symboleffect als auch phase wäre ganz cool. Vielleicht als Video Idee für dich "Introduction into Animations"
How will you use this API?
Very useful information! Thanks for sharing Flo! 🙌🏻
My pleasure!!
This is an amazing piece of information. Quick video with a great explanation. Thanks so much.
Glad you enjoyed it!
I don’t think this modifier works relative to the parent view like geometry reader does. Instead it works relative to a container which is a window, scroll view or navigation stack
Awesome! I'm right in the process of GeoReader and considering a second option. I think this will work! Thank you!
Glad it was helpful!
This is a good example! I did learn recently however that although this modifier will work on most things like List and NavigationStack, it does not work on some things like HStack or VStack.
Sehr guter Tipp! Danke fürs zeigen 👍
Awesome Flo - thank you for the clear demo! I didn't know about his modifier! I'd image I'll use it for all sorts of things, including a custom bottom sheet (when your app doesn't support the SwiftUI iOS version to use detents) combined with ScaledMetric or something. Anyway, thanks again!
Hey Scott! This sounds great, but unfortunately this API was only introduced in iOS 17... So it's not really suitable for you use case :/
Good tips !!
Thanks!
Thank you...
Great!
Ein tutorial zum thema animationen wäre richtig cool 🎉
Welche Art von Animationen würdest du gerne lernen? .animation, .symbolEffect oder PhaseAnimator?
@@FloWritesCodeist .animation nicht veraltet? Ansonsten sowohl symboleffect als auch phase wäre ganz cool. Vielleicht als Video Idee für dich "Introduction into Animations"
nice idea but not usefull when you try to support ios 15-16=(
Maybe this uses GeometryReader behind the scene?
We'll probably never know :/
Swift is open sourced though :)
@@meowpeow765 Yup, but this is about SwiftUI, which isn't :/
GeometryReader is good for all iOS devices if you wanna keep the same size based screen size
🔥🔥🔥
Yes... we will stop using GeometryReader maybe in 2 years =)))
Stop using iOS 17 only)
Tell Apple to stop shipping SwiftUI updates that aren't backwards-compatible...
@@FloWritesCode New title: "Stop using GeometryReader in SwiftUI (iOS 17+)"