'The scrollbar jumps when dynamic height content in LazyVStack inside ScrollView in SwiftUI
struct ContentView: View {
var body: some View {
ScrollView {
LazyVStack {
ForEach(replys) {
Text($0.content)
}
}
}
}
}
The content of reply is variable, so the height of Text is dynamic. When scrolling, the scrollbar is jumping. Here is the original question
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
