One Logo Pool Ball
Foundation · IOS API REFERENCE

AttributeScopes.FoundationAttributes

struct · iOS 15.0+ · SDK 27.1

struct FoundationAttributes

Attribute scopes that Foundation defines.

Members (24)

get · iOS 16.0+

localizedStringArgumentAttributes

TypeScript
get localizedStringArgumentAttributes(): AttributeScopes_FoundationAttributes_LocalizedStringArgumentAttributes
Swift declaration
let localizedStringArgumentAttributes: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes

A property for accessing a localized string argument attribute.

get · iOS 15.0+

morphology

TypeScript
get morphology(): AttributeScopes_FoundationAttributes_MorphologyAttribute
Swift declaration
let morphology: AttributeScopes.FoundationAttributes.MorphologyAttribute

A scope for accessing a morphology attribute.

get · iOS 15.0+

measurement

TypeScript
get measurement(): AttributeScopes_FoundationAttributes_MeasurementAttribute
Swift declaration
let measurement: AttributeScopes.FoundationAttributes.MeasurementAttribute
get · iOS 15.0+

numberFormat

TypeScript
get numberFormat(): AttributeScopes_FoundationAttributes_NumberFormatAttributes
Swift declaration
let numberFormat: AttributeScopes.FoundationAttributes.NumberFormatAttributes

A property for accessing a number format attribute.

get · iOS 16.0+

durationField

TypeScript
get durationField(): AttributeScopes_FoundationAttributes_DurationFieldAttribute
Swift declaration
let durationField: AttributeScopes.FoundationAttributes.DurationFieldAttribute
get · iOS 17.0+

referentConcept

TypeScript
get referentConcept(): AttributeScopes_FoundationAttributes_ReferentConceptAttribute
Swift declaration
let referentConcept: AttributeScopes.FoundationAttributes.ReferentConceptAttribute

A scope for accessing a referent concept attribute.

get · iOS 17.0+

agreementConcept

TypeScript
get agreementConcept(): AttributeScopes_FoundationAttributes_AgreementConceptAttribute
Swift declaration
let agreementConcept: AttributeScopes.FoundationAttributes.AgreementConceptAttribute

A scope for accessing an agreement concept attribute.

get · iOS 15.0+

replacementIndex

TypeScript
get replacementIndex(): AttributeScopes_FoundationAttributes_ReplacementIndexAttribute
Swift declaration
let replacementIndex: AttributeScopes.FoundationAttributes.ReplacementIndexAttribute

A property for accessing a replacement index attribute.

get · iOS 26.0+

writingDirection

TypeScript
get writingDirection(): AttributeScopes_FoundationAttributes_WritingDirectionAttribute
Swift declaration
let writingDirection: AttributeScopes.FoundationAttributes.WritingDirectionAttribute

The base writing direction of a paragraph.

get · iOS 17.0+

agreementArgument

TypeScript
get agreementArgument(): AttributeScopes_FoundationAttributes_AgreementArgumentAttribute
Swift declaration
let agreementArgument: AttributeScopes.FoundationAttributes.AgreementArgumentAttribute

A scope for accessing an agreement argument attribute.

get · iOS 26.0+

listItemDelimiter

TypeScript
get listItemDelimiter(): AttributeScopes_FoundationAttributes_ListItemDelimiterAttribute
Swift declaration
let listItemDelimiter: AttributeScopes.FoundationAttributes.ListItemDelimiterAttribute
get · iOS 15.0+

languageIdentifier

TypeScript
get languageIdentifier(): AttributeScopes_FoundationAttributes_LanguageIdentifierAttribute
Swift declaration
let languageIdentifier: AttributeScopes.FoundationAttributes.LanguageIdentifierAttribute

A property for accessing a language identifier attribute.

get · iOS 15.0+

presentationIntent

TypeScript
get presentationIntent(): AttributeScopes_FoundationAttributes_PresentationIntentAttribute
Swift declaration
let presentationIntent: AttributeScopes.FoundationAttributes.PresentationIntentAttribute

A property for accessing a presentation intent attribute.

get · iOS 15.0+

personNameComponent

TypeScript
get personNameComponent(): AttributeScopes_FoundationAttributes_PersonNameComponentAttribute
Swift declaration
let personNameComponent: AttributeScopes.FoundationAttributes.PersonNameComponentAttribute

A property for accessing a person name component attribute.

get · iOS 15.0+

alternateDescription

TypeScript
get alternateDescription(): AttributeScopes_FoundationAttributes_AlternateDescriptionAttribute
Swift declaration
let alternateDescription: AttributeScopes.FoundationAttributes.AlternateDescriptionAttribute

A property for accessing an alternative presentation attribute.

get · iOS 15.0+

inflectionAlternative

TypeScript
get inflectionAlternative(): AttributeScopes_FoundationAttributes_InflectionAlternativeAttribute
Swift declaration
let inflectionAlternative: AttributeScopes.FoundationAttributes.InflectionAlternativeAttribute

A scope for accessing an inflection alternative attribute.

get · iOS 18.0+

localizedNumberFormat

TypeScript
get localizedNumberFormat(): AttributeScopes_FoundationAttributes_LocalizedNumberFormatAttribute
Swift declaration
let localizedNumberFormat: AttributeScopes.FoundationAttributes.LocalizedNumberFormatAttribute
get · iOS 16.0+

markdownSourcePosition

TypeScript
get markdownSourcePosition(): AttributeScopes_FoundationAttributes_MarkdownSourcePositionAttribute
Swift declaration
let markdownSourcePosition: AttributeScopes.FoundationAttributes.MarkdownSourcePositionAttribute

A property for accessing a Markdown source position attribute. This attribute indicates the position in the Markdown source where a run of attributed text begins and ends, omitting markup characters in the source. For example, after parsing the source string `"This is *emphasized*."`, the text `emphasized` has a Markdown source position that starts at column `10`. This index is the `"e"` character, not the `"*"` formatting character. > Tip: ``AttributedString/MarkdownSourcePosition`` uses `1`-based counting for > its row and column properties. For columns, the value represents a UTF-8 index. > With multi-byte characters, the column is therefore the first byte of the character. An attributed string parsed from Markdown text includes this attribute only if the ``AttributedString/MarkdownParsingOptions/appliesSourcePositionAttributes`` value in the ``AttributedString/MarkdownParsingOptions`` provided to the ``AttributedString`` initializer is `true`.

get · iOS 15.0+

inlinePresentationIntent

TypeScript
get inlinePresentationIntent(): AttributeScopes_FoundationAttributes_InlinePresentationIntentAttribute
Swift declaration
let inlinePresentationIntent: AttributeScopes.FoundationAttributes.InlinePresentationIntentAttribute

A property for accessing an inline presentation intent attribute.

get · iOS 15.0+

link

TypeScript
get link(): AttributeScopes_FoundationAttributes_LinkAttribute
Swift declaration
let link: AttributeScopes.FoundationAttributes.LinkAttribute

A property for accessing the link attribute.

get · iOS 15.0+

inflect

TypeScript
get inflect(): AttributeScopes_FoundationAttributes_InflectionRuleAttribute
Swift declaration
let inflect: AttributeScopes.FoundationAttributes.InflectionRuleAttribute

A scope for accessing an inflection rule attribute.

get · iOS 15.0+

imageURL

TypeScript
get imageURL(): AttributeScopes_FoundationAttributes_ImageURLAttribute
Swift declaration
let imageURL: AttributeScopes.FoundationAttributes.ImageURLAttribute

A property for accessing an image URL attribute.

get · iOS 15.0+

byteCount

TypeScript
get byteCount(): AttributeScopes_FoundationAttributes_ByteCountAttribute
Swift declaration
let byteCount: AttributeScopes.FoundationAttributes.ByteCountAttribute
get · iOS 15.0+

dateField

TypeScript
get dateField(): AttributeScopes_FoundationAttributes_DateFieldAttribute
Swift declaration
let dateField: AttributeScopes.FoundationAttributes.DateFieldAttribute

A property for accessing a date field attribute.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →