Required Instance Subscriptswift 6.0.3FoundationEssentials
subscript(_:)
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
subscript<R>(bounds: R) -> AttributedSubstring where R : RangeExpression, R.Bound == AttributedString.Index { get }
subscript<R>(bounds: R) -> AttributedSubstring where R : RangeExpression, R.Bound == AttributedString.Index { get }
s20FoundationEssentials24AttributedStringProtocolPyAA0C9SubstringVqd__cSXRd__AA0cD0V5IndexV5BoundRtd__luip
What are these?8CHLZ
import FoundationEssentials
@dynamicMemberLookup protocol AttributedStringProtocol : AttributedStringAttributeMutation, CustomStringConvertible, Hashable, Sendable
@dynamicMemberLookup struct AttributedSubstring
protocol RangeExpression<Bound>
A type that can be used to slice a collection.
associatedtype Bound : Comparable
The type for which the expression describes a range.
@dynamicMemberLookup struct AttributedString
struct Index
var characters: AttributedString.CharacterView { 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 }