<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedString/Key/baselineOffset",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@NSBaselineOffsetAttributeName"
  },
  "title" : "baselineOffset"
}
-->

# baselineOffset

The vertical offset for the position of the text.

```
static let baselineOffset: NSAttributedString.Key
```

## Discussion

The value of this attribute is an [`NSNumber`](/documentation/Foundation/NSNumber) object containing a floating point value indicating the character’s offset from the baseline, in points. The default value is `0`.

> Important:
> This attribute is different from <doc://com.apple.documentation/documentation/CoreText/kCTBaselineOffsetAttributeName>; you need to use <doc://com.apple.documentation/documentation/CoreText/kCTBaselineOffsetAttributeName> if you are writing code for <doc://com.apple.documentation/documentation/CoreText>.

## See Also

  <doc://com.apple.documentation/documentation/CoreText/kCTBaselineOffsetAttributeName>



---

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)