AttributeScopes
enum · iOS 15.0+ · SDK 27.1
@frozen enum AttributeScopesCollections of attributes that system frameworks define. Attribute scopes define groups of attributes appropriate for use with attributed strings in a certain domain. Attribute definitions contain a name, value type, and encode/decode methods to support serialization. For example, the ``FoundationAttributes`` scope provides an attribute type for a link to a URL, ``FoundationAttributes/LinkAttribute``, along with a property to access this type, ``FoundationAttributes/link``. Because ``FoundationAttributes`` implements ``AttributeDynamicLookup``, you can access the link attribute by name, as this example shows: ```swift var attrStr = AttributedString("Example site") attrStr.link = URL(string: "http://example.com") ```
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AttributeScopes.foundation
Passing a Swift type itself is not supported.