Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
I encountered this problem for a LazyVStack. My solution worked for me.
Once you determine that the ForEach is called twice, use some debugging to determine where and why the view may be re-rending twice. Sometimes swift may re-render a view and in this case the ForEach may appear twice inside the VStack, as ForEach acts as its own Collection for views. https://developer.apple.com/documentation/swiftui/foreach
As for the debugging part, try putting a .onAppear( //print something and add a break point ){} on the ForEach (Tested), if it is called twice you know that it is re-rendered twice.
1 - see the changes that occur between the first break point and the second break point to see the changes
I hope this can help someone else that experiences the same issue.