I am displaying 3 rows in medium size widget like below:
my view structure is here:
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?
Code Block row 1 ------- row 2 ------- row 3 -------
my view structure is here:
Code Block 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?