<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeScopes/AppKitAttributes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO6AppKitE0dE10AttributesV"
  },
  "title" : "AttributeScopes.AppKitAttributes"
}
-->

# AttributeScopes.AppKitAttributes

Attribute scopes that AppKit defines.

```
struct AppKitAttributes
```

## Topics

### Using Color Attributes

[`backgroundColor`](/documentation/Foundation/AttributeScopes/AppKitAttributes/backgroundColor)

A property for accessing a background color attribute.

[`foregroundColor`](/documentation/Foundation/AttributeScopes/AppKitAttributes/foregroundColor)

A property for accessing a foreground color attribute.

### Using Font and Layout Attributes

[`font`](/documentation/Foundation/AttributeScopes/AppKitAttributes/font)

A property for accessing a font attribute.

[`kern`](/documentation/Foundation/AttributeScopes/AppKitAttributes/kern)

A property for accessing a kerning attribute.

[`ligature`](/documentation/Foundation/AttributeScopes/AppKitAttributes/ligature)

A property for accessing a ligature attribute.

[`glyphInfo`](/documentation/Foundation/AttributeScopes/AppKitAttributes/glyphInfo)

A property for accessing a glyph information attribute.

[`tracking`](/documentation/Foundation/AttributeScopes/AppKitAttributes/tracking)

A property for accessing a tracking attribute.

### Using Text Styling Attributes

[`baselineOffset`](/documentation/Foundation/AttributeScopes/AppKitAttributes/baselineOffset)

A property for accessing a baseline offset attribute.

[`obliqueness`](/documentation/Foundation/AttributeScopes/AppKitAttributes/obliqueness)

A property for accessing an obliqueness attribute.

[`shadow`](/documentation/Foundation/AttributeScopes/AppKitAttributes/shadow)

A property for accessing a shadow attribute.

[`strikethroughColor`](/documentation/Foundation/AttributeScopes/AppKitAttributes/strikethroughColor)

A property for accessing a strikethrough color attribute.

[`strikethroughStyle`](/documentation/Foundation/AttributeScopes/AppKitAttributes/strikethroughStyle)

A property for accessing a strikethrough style attribute.

[`strokeColor`](/documentation/Foundation/AttributeScopes/AppKitAttributes/strokeColor)

A property for accessing a stroke color attribute.

[`strokeWidth`](/documentation/Foundation/AttributeScopes/AppKitAttributes/strokeWidth)

A property for accessing a stroke width attribute.

[`textEffect`](/documentation/Foundation/AttributeScopes/AppKitAttributes/textEffect)

A property for accessing a text effect attribute.

[`underlineColor`](/documentation/Foundation/AttributeScopes/AppKitAttributes/underlineColor)

A property for accessing an underline color attribute.

[`underlineStyle`](/documentation/Foundation/AttributeScopes/AppKitAttributes/underlineStyle)

A property for accessing an underline style attribute.

### Using Attachments and Expansions

[`attachment`](/documentation/Foundation/AttributeScopes/AppKitAttributes/attachment)

A property for accessing an attachment attribute.

[`expansion`](/documentation/Foundation/AttributeScopes/AppKitAttributes/expansion)

A property for accessing an expansion attribute.

### Using User Interface Attributes

[`cursor`](/documentation/Foundation/AttributeScopes/AppKitAttributes/cursor)

A property for accessing a cursor attribute.

[`toolTip`](/documentation/Foundation/AttributeScopes/AppKitAttributes/toolTip)

A property for accessing a tool tip attribute.

[`textAlternatives`](/documentation/Foundation/AttributeScopes/AppKitAttributes/textAlternatives)

A property for accessing a text alternatives attribute.

### Using Foundation Attributes

[`foundation`](/documentation/Foundation/AttributeScopes/AppKitAttributes/foundation)

A property for accessing attributes defined by the Foundation framework.

### Using Text Layout and Presentation Attributes

[`markedClauseSegment`](/documentation/Foundation/AttributeScopes/AppKitAttributes/markedClauseSegment)

[`paragraphStyle`](/documentation/Foundation/AttributeScopes/AppKitAttributes/paragraphStyle)

[`superscript`](/documentation/Foundation/AttributeScopes/AppKitAttributes/superscript)

## Relationships

### Conforms To

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

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

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

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

---

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)