To get the first index of an item in an array in Swift, use the array.firstIndex(where:) method. For instance, let's find the first occurrence of the string ...
確定! 回上一頁