I have a ForEach like this in SwiftUI:
ForEach(entries) { (e: MyType) in
NavigationLinkItem(entry: e)
}
now I need to also pass the previous Entry to my View (NavigationLinkItem) to do something like this:
ForEach(entries) { (e: MyType) in
NavigationLinkItem(entry: e, sucessor: ...)
}
How to realise that?