Instance Methodswift 6.0.3FoundationEssentials
index(_:offsetBy:)
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
func index(_ i: AttributedString.Index, offsetBy distance: Int) -> AttributedString.Index
func index(_ i: AttributedString.Index, offsetBy distance: Int) -> AttributedString.Index
s20FoundationEssentials16AttributedStringV13CharacterViewV5index_8offsetByAC5IndexVAI_SitF
What are these?3GYY2
import FoundationEssentials
struct CharacterView
@dynamicMemberLookup struct AttributedString
struct Index
@frozen struct Int
A signed integer value type.
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, 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
typealias Index = AttributedString.Index