---
title: firstBaselineAnchor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/firstbaselineanchor
---

# firstBaselineAnchor

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

## Declaration

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

## Mentioned in

Configuring and displaying symbol images in your UI

## 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 combine this anchor only with other NSLayoutYAxisAnchor anchors. For more information, see NSLayoutAnchor.

## See Also

### Creating constraints using layout anchors

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