Hello everyone, first post here! It seems I have a problem with LazyVStack, either because of a bug or because I have not yet understood how to use them properly. This simple piece of code, with the messagesString being a simple array of strings, causes the scrollview to lag when scrolling.
ScrollView{
LazyVStack {
ForEach(0..<messagesString.count - 1 , id: \.self){index in
Text("\(messagesStringAO[index])")
.id(index)
}
}
}
}
Using a simple Vstack fixes the lag issue. It seems to me that associating the string in the array to the content of the view causes the problem. Any help would be greatly appreciated! Thanks :)