---
title: top
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/alignment/top
---

# top

A guide that marks the top edge of the view.

## Declaration

```swift
static let top: Alignment
```

## Discussion

Discussion This alignment combines the center horizontal guide and the top vertical guide:

## See Also

### Getting top guides

- [topLeading](swiftui/alignment/topleading.md)
- [topTrailing](swiftui/alignment/toptrailing.md)
