Returns the position immediately before the given index.
SDK
Framework
On This Page
func index(before idx: String.UTF16View.Index) -> String.UTF16View.Index
i
A valid index of the collection. i must be greater than startIndex.
startIndex
The index value immediately before i.
BidirectionalCollection