Instance Subscriptswift 6.0.3FoundationEssentials
subscript(_:)
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
subscript(bounds: some RangeExpression<AttributedString.Index>) -> AttributedSubstring { get }
subscript(bounds: some RangeExpression<AttributedString.Index>) -> AttributedSubstring { get }
s20FoundationEssentials19AttributedSubstringVyACxcSXRzAA0C6StringV5IndexV5BoundRtzluip
What are these?8MOJ0
import FoundationEssentials
@dynamicMemberLookup struct AttributedSubstring
protocol RangeExpression<Bound>
A type that can be used to slice a collection.
@dynamicMemberLookup struct AttributedString
struct Index
init()
var base: AttributedString { get }
var characters: AttributedString.CharacterView { get }
var description: String { get }
var endIndex: AttributedString.Index { get }
var runs: AttributedString.Runs { get }
var startIndex: AttributedString.Index { get }
var unicodeScalars: AttributedString.UnicodeScalarView { get }
@preconcurrency subscript<K>(_: K.Type) -> K.Value? where K : AttributedStringKey, K.Value : Sendable { get set }
@preconcurrency subscript<K>(dynamicMember keyPath: KeyPath<AttributeDynamicLookup, K>) -> K.Value? where K : AttributedStringKey, K.Value : Sendable { get set }
subscript<S>(dynamicMember keyPath: KeyPath<AttributeScopes, S.Type>) -> ScopedAttributeContainer<S> where S : AttributeScope { get set }
static func == (lhs: AttributedSubstring, rhs: AttributedSubstring) -> Bool
mutating func mergeAttributes(_ attributes: AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy = .keepNew)
mutating func replaceAttributes(_ attributes: AttributeContainer, with others: AttributeContainer)
mutating func setAttributes(_ attributes: AttributeContainer)