Ornaments don't affect the safe area insets or layout margins of their associated views on visionOS. This seems odd to me. What's the best way to inset a scroll view to ensure the content can become fully visible then?
Filed this as FB12777426 with an example project. The feedback and example project can also be found here: https://github.com/simonbs/AppleFeedback/tree/main/FB12777426
AppleFeedback/FB12777426 at main · simonbs/AppleFeedback

💬 Sample projects submitted to Apple Feedback. Contribute to simonbs/AppleFeedback development by creating an account on GitHub.

GitHub
Best workaround seems to be measuring the ornament and updating the UIScrollView's content insets manually. It works but it isn't pretty.
@simonbs if the size of your toolbar ever changes you won't notice this. Whenever you use onAppear, you also should probably use onChangeOf to track any changes to the proxy's size!
@chris @simonbs a PreferenceKey would update its value onAppear and onChange without the need for two modifiers, wouldn’t it?
@emiliopelaez @simonbs it would. There's a new onChange(of:) variant that also does it in a single modifier (latest platforms only). Or task(id:).