Instance SubscriptFoundationEssentials
subscript(dynamicMember:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Returns a scoped attribute container that a key path indicates.
subscript<S>(dynamicMember keyPath: KeyPath<AttributeScopes, S.Type>) -> ScopedAttributeContainer<S> where S : AttributeScope { get set }
Overview
Use explicit attribute scopes to disambiguate attributes that exist in more than one scope. The container contains only attributes present and identical for the entire string or substring.