I am displaying 3 rows in iOS 14 medium size widget like below:
row 1
-------
row 2
-------
row 3
-------
my view structure is here:
VStack {
ForEach(records, id: \.id) { item in
ZStack {
// some views
}
.widgetURL(URL(string: "wig://\(item.id)"))
}
Divider()
}
It seems the widget URL for first and second items are override by the the third item, all deep link will open third item's content.
what is the proper way to add deep link for views generated from ForEach?