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

# AttributeScopes.UIKitAttributes

Attribute scopes that UIKit defines.

```
struct UIKitAttributes
```

## Topics

### Using Color Attributes

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

A property for accessing a background color attribute.

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

A property for accessing a foreground color attribute.

### Using Font and Layout Attributes

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

A property for accessing a font attribute.

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

A property for accessing a kerning attribute.

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

A property for accessing a ligature attribute.

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

A property for accessing a tracking attribute.

### Using Text Styling Attributes

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

A property for accessing a baseline offset attribute.

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

A property for accessing an obliqueness attribute.

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

A property for accessing a paragraph style attribute.

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

A property for accessing a shadow attribute.

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

A property for accessing a strikethrough color attribute.

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

A property for accessing a strikethrough style attribute.

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

A property for accessing a stroke color attribute.

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

A property for accessing a stroke width attribute.

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

A property for accessing a text effect attribute.

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

A property for accessing an underline color attribute.

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

A property for accessing an underline style attribute.

### Using Attachments and Expansions

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

A property for accessing an attachment attribute.

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

A property for accessing an expansion attribute.

### Using Foundation Attributes

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

A property for accessing attributes defined by the Foundation framework.

## Relationships

### Conforms To

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

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

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

[`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)