Instance Method


Returns the index that immediately follows the specified index.


func index(after i: Data.Index) -> Data.Index

See Also

Manipulating Indexes

typealias Data.Index

A type used to indicate a position in a data's buffer.

var startIndex: Data.Index

The beginning index into the data.

var endIndex: Data.Index

The end index into the data.

func index(Int, offsetBy: Int) -> Int

Returns an index that is the specified distance from the given index.

func index(before: Data.Index) -> Data.Index

Returns the index that immediately precedes the specified index.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software