I have an array and I want to iterate through it initialize views based on array value, and want to perform action based on array item index
When I iterate through o
Here is a simple solution though quite inefficient to the ones above..
In your Tap Action, pass through your item
.tapAction { var index = self.getPosition(item) }
Then create a function the finds the index of that item by comparing the id
func getPosition(item: Item) -> Int { for i in 0..