---
title: firstBaselineAnchor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/firstbaselineanchor
---

# firstBaselineAnchor

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

## Declaration

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

## Discussion

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 NSLayoutYAxisAnchor anchors. For more information, see NSLayoutAnchor.

## See Also

### Creating Constraints Using Layout Anchors

- [bottomAnchor](appkit/nsview/bottomanchor.md)
- [centerXAnchor](appkit/nsview/centerxanchor.md)
- [centerYAnchor](appkit/nsview/centeryanchor.md)
- [heightAnchor](appkit/nsview/heightanchor.md)
- [lastBaselineAnchor](appkit/nsview/lastbaselineanchor.md)
- [leadingAnchor](appkit/nsview/leadinganchor.md)
- [leftAnchor](appkit/nsview/leftanchor.md)
- [rightAnchor](appkit/nsview/rightanchor.md)
- [topAnchor](appkit/nsview/topanchor.md)
- [trailingAnchor](appkit/nsview/trailinganchor.md)
- [widthAnchor](appkit/nsview/widthanchor.md)
