Instance Methodswift 6.0.3FoundationEssentials
distance(to:)
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
func distance(to other: AttributedString.Runs.Index) -> Int
func distance(to other: AttributedString.Runs.Index) -> Int
s20FoundationEssentials16AttributedStringV4RunsV5IndexV8distance2toSiAG_tF
What are these?5M6Q9
import FoundationEssentials
struct Index
@dynamicMemberLookup struct AttributedString
struct Runs
@frozen struct Int
A signed integer value type.
static func < (lhs: AttributedString.Runs.Index, rhs: AttributedString.Runs.Index) -> Bool
static func == (lhs: AttributedString.Runs.Index, rhs: AttributedString.Runs.Index) -> Bool
func advanced(by n: Int) -> AttributedString.Runs.Index