<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeScopes/FoundationAttributes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO0A10AttributesV"
  },
  "title" : "AttributeScopes.FoundationAttributes"
}
-->

# AttributeScopes.FoundationAttributes

Attribute scopes that Foundation defines.

```
struct FoundationAttributes
```

## Topics

### Using date attributes

[`dateField`](/documentation/Foundation/AttributeScopes/FoundationAttributes/dateField)

A property for accessing a date field attribute.

[`DateFieldAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/DateFieldAttribute)

A type for using a date field as an attribute.

### Using language attributes

[`languageIdentifier`](/documentation/Foundation/AttributeScopes/FoundationAttributes/languageIdentifier)

A property for accessing a language identifier attribute.

[`LanguageIdentifierAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/LanguageIdentifierAttribute)

A type for using a language identifier as an attribute.

### Using URL attributes

[`imageURL`](/documentation/Foundation/AttributeScopes/FoundationAttributes/imageURL)

A property for accessing an image URL attribute.

[`ImageURLAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ImageURLAttribute)

A type for using an image URL as an attribute.

[`link`](/documentation/Foundation/AttributeScopes/FoundationAttributes/link)

A property for accessing the link attribute.

[`LinkAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/LinkAttribute)

A type for using a link as an attribute.

### Using presentation intent attributes

[`inlinePresentationIntent`](/documentation/Foundation/AttributeScopes/FoundationAttributes/inlinePresentationIntent)

A property for accessing an inline presentation intent attribute.

[`InlinePresentationIntentAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/InlinePresentationIntentAttribute)

A type for using an inline presentation intent as an attribute.

[`InlinePresentationIntent`](/documentation/Foundation/InlinePresentationIntent)

A type that defines presentation intent for runs of characters for traits like emphasis, strikethrough, and code voice.

[`presentationIntent`](/documentation/Foundation/AttributeScopes/FoundationAttributes/presentationIntent)

A property for accessing a presentation intent attribute.

[`PresentationIntentAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/PresentationIntentAttribute)

A type for using a presentation intent as an attribute.

[`PresentationIntent`](/documentation/Foundation/PresentationIntent)

A type that defines presentation intent for blocks of characters like paragraphs, lists, block quotes, and tables.

### Using alternative description attributes

[`alternateDescription`](/documentation/Foundation/AttributeScopes/FoundationAttributes/alternateDescription)

A property for accessing an alternative presentation attribute.

[`AlternateDescriptionAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/AlternateDescriptionAttribute)

A type for using an alternative description as an attribute.

### Using string formatting attributes

[`replacementIndex`](/documentation/Foundation/AttributeScopes/FoundationAttributes/replacementIndex)

A property for accessing a replacement index attribute.

[`ReplacementIndexAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ReplacementIndexAttribute)

A type for using a replacement index as an attribute.

### Using string localization attributes

[`localizedStringArgumentAttributes`](/documentation/Foundation/AttributeScopes/FoundationAttributes/localizedStringArgumentAttributes-swift.property)

A property for accessing a localized string argument attribute.

[`LocalizedStringArgumentAttributes`](/documentation/Foundation/AttributeScopes/FoundationAttributes/LocalizedStringArgumentAttributes-swift.struct)

A type for using a localized string argument as an attribute.

### Using automatic grammar agreement attributes

[`inflect`](/documentation/Foundation/AttributeScopes/FoundationAttributes/inflect)

A scope for accessing an inflection rule attribute.

[`InflectionRuleAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/InflectionRuleAttribute)

A type for using an inflection rule as an attribute.

[`agreementArgument`](/documentation/Foundation/AttributeScopes/FoundationAttributes/agreementArgument)

A scope for accessing an agreement argument attribute.

[`AgreementArgumentAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/AgreementArgumentAttribute)

An attribute that represents grammatical agreement with an argument in a localized string.

[`agreementConcept`](/documentation/Foundation/AttributeScopes/FoundationAttributes/agreementConcept)

A scope for accessing an agreement concept attribute.

[`AgreementConceptAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/AgreementConceptAttribute)

An attribute that represents grammatical agreement for objects that aren’t part of the inflected text.

[`morphology`](/documentation/Foundation/AttributeScopes/FoundationAttributes/morphology)

A scope for accessing a morphology attribute.

[`MorphologyAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/MorphologyAttribute)

A type for using a morphology as an attribute.

[`referentConcept`](/documentation/Foundation/AttributeScopes/FoundationAttributes/referentConcept)

A scope for accessing a referent concept attribute.

[`ReferentConceptAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ReferentConceptAttribute)

An attribute that specifies a grammatical agreement concept for substituting pronouns in localized text.

[`inflectionAlternative`](/documentation/Foundation/AttributeScopes/FoundationAttributes/inflectionAlternative)

A scope for accessing an inflection alternative attribute.

[`InflectionAlternativeAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/InflectionAlternativeAttribute)

An attribute that provides an alternative inflection phrase when the system can’t achieve grammatical agreement.

### Using number formatting attributes

[`numberFormat`](/documentation/Foundation/AttributeScopes/FoundationAttributes/numberFormat)

A property for accessing a number format attribute.

[`NumberFormatAttributes`](/documentation/Foundation/AttributeScopes/FoundationAttributes/NumberFormatAttributes)

A type for using a number format as an attribute.

### Using person name component attributes

[`personNameComponent`](/documentation/Foundation/AttributeScopes/FoundationAttributes/personNameComponent)

A property for accessing a person name component attribute.

[`PersonNameComponentAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/PersonNameComponentAttribute)

A type for using a person name component as an attribute.

### Using Markdown source position attributes

[`markdownSourcePosition`](/documentation/Foundation/AttributeScopes/FoundationAttributes/markdownSourcePosition)

A property for accessing a Markdown source position attribute.

[`MarkdownSourcePositionAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/MarkdownSourcePositionAttribute)

A type for using a markdown source position as an attribute.

## Relationships

### Conforms To

[`EncodingConfigurationProviding`](/documentation/Foundation/EncodingConfigurationProviding)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`AttributeScope`](/documentation/Foundation/AttributeScope)

[`DecodingConfigurationProviding`](/documentation/Foundation/DecodingConfigurationProviding)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)