Structure
ScopedAttributeContainer
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
An attribute container that allows dynamic member lookup of its contents within the specified attribute scope.
@dynamicMemberLookup struct ScopedAttributeContainer<S> where S : AttributeScope
Overview
Use a ScopedAttributeContainer when you need to disambiguate between attributes that exist in several attribute scopes that your app uses.
Topics
Subscripts
subscript<T>(dynamicMember _: KeyPath<S, T>) -> T.Value?Returns the value of the attribute that the specified key path indicates.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype