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
In case somebody has this problem
Cannot invoke initializer for type 'Int' with an argument list of type '(Array.Index?)'
jsut do this
extension Int { var toInt: Int { return self } }
then
guard let finalIndex = index?.toInt else { return false }