ScrollViewIfNeeded icon indicating copy to clipboard operation
ScrollViewIfNeeded copied to clipboard

A SwiftUI ScrollView that only scrolls if the content doesn't fit in the View

Results 2 ScrollViewIfNeeded issues
Sort by recently updated
recently updated
newest added

When I change the content of the scroll view dynamically, the scrolling is broken. You can try the code bellow - the scrolling is broken after switch from short text...

With `ScrollViewIfNeeded(.horizontal, showsIndicators: false)`: Replace ScrollViewIfNeeded into `ScrollView(.horizontal, showsIndicators: false) {`: