There is a response here "from an Apple engineer" that works for me:
.onPreferenceChange(HeightKey.self) { [$height] newValue in
$height.wrappedValue = newValue
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: