<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/firstBaselineAnchor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(py)firstBaselineAnchor"
  },
  "title" : "firstBaselineAnchor"
}
-->

# firstBaselineAnchor

A layout anchor representing the baseline for the topmost line of text in the view.

```
var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
```

## Discussion

For views with multiple lines of text, this anchor represents the baseline of the top row of text. Use this anchor to create constraints with this baseline. You can only combine this anchor with other <doc://com.apple.documentation/documentation/UIKit/NSLayoutYAxisAnchor> anchors. For more information, see <doc://com.apple.documentation/documentation/UIKit/NSLayoutAnchor>.

---

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)