SwiftUI's #PreferenceKey itβs great for passing data upwards in your view hierarchy. Unlike #EnvironmentKey, PreferenceKey is perfect for sharing calculated data or measurements. π so far Iβve been using it to calculate the header height based on child views content and collapsing it on scroll view offset. π€ Curious to know any other examples, share if you can π ! #iosdev #swiftui