Instance Method インスタンスメソッド

index(beforeRun:)

Returns the position of the run immediately before a run indicated by an index.

Declaration 宣言

func index(beforeRun i: AttributedString.Index) -> AttributedString.Index

Parameters パラメータ

i

The index of a run in the attributed string.

Return Value 戻り値

The position of the first run immediately before the beginning of the i-th run.

See Also 参照

Accessing Indices インデックスにアクセスする