SwiftUI ScrollView scrollTo no effect unless .id() on each row and scrollTo called in onChange

Domain: development · Evidence E2 — Local smoke reproduced
swiftswiftuiscrollviewscrollviewreaderscrolltofocusstate

Summary

In SwiftUI, `ScrollViewReader.scrollTo(_:anchor:)` appears to do nothing — the scroll position never moves. Happens especially in macOS sidebar-detail `HSplitVi…

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons