It works as expected everywhere except on macOS 15.2 (My Mac target), as you confirmed. The issue is resolved by setting the scrollview's height (adding a margin still triggers the bug). This suggests an internal SwiftUI change in macOS 15.2 that isn't part of the public API.