Type Aliasswift 6.0.3FoundationEssentials
Index
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
typealias Index = AttributedString.Index
typealias Index = AttributedString.Index
s20FoundationEssentials16AttributedStringV13CharacterViewV5Indexa
What are these?3C55J
import FoundationEssentials
struct CharacterView
@dynamicMemberLookup struct AttributedString
struct Index
init()
var count: Int { get }
var endIndex: AttributedString.Index { get }
var startIndex: AttributedString.Index { get }
subscript(index: AttributedString.Index) -> Character { get set }
subscript(bounds: Range<AttributedString.Index>) -> Slice<AttributedString.CharacterView> { get set }
func distance(from start: AttributedString.Index, to end: AttributedString.Index) -> Int
func index(_ i: AttributedString.Index, offsetBy distance: Int) -> AttributedString.Index
func index(_ i: AttributedString.Index, offsetBy distance: Int, limitedBy limit: AttributedString.Index) -> AttributedString.Index?
func index(after i: AttributedString.Index) -> AttributedString.Index
func index(before i: AttributedString.Index) -> AttributedString.Index
mutating func replaceSubrange(_ subrange: Range<AttributedString.CharacterView.Index>, with newElements: some Collection<Character>)
typealias Element = Character