The problem is that you have NavigationLink placed in the ForEach cycle! You need to remove NavigationLink from the cycle and transfer the necessary data there, for example, through the view model.
Summary: you must have only one NavigationLink with the "IsActive" parameter.
My original answer - https://stackoverflow.com/questions/66017531/swiftui-navigationlink-bug-swiftui-encountered-an-issue-when-pushing-anavigatio/67626758#67626758
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: