SWiftUI anchorPreference inside List
问题 I'm using anchorPreferences to set the height of GeometryReader to fit the height of its content. The issue I'm experiencing is, after scrolling up and down the List a few times, the app freezes, the design gets messy, and I get the following message in the console: Bound preference CGFloatPreferenceKey tried to update multiple times per frame. Any ideas how I can fix this? IMPORTANT NOTE: I've simplified my design as much as I could. Here is the code: struct ListAndPreferences: View { var