I am trying to find an item index by searching a list. Does anybody know how to do that?
item index
list
I see there is list.StartIndex and <
list.StartIndex
Just use firstIndex method.
array.firstIndex(where: { $0 == searchedItem })