---
title: "setVerticalAlignment(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfaceobject/setverticalalignment(_:)"
---

# setVerticalAlignment(_:)

Sets the vertical alignment of an object relative to its container’s bounds.

## Declaration

```swift
func setVerticalAlignment(_ verticalAlignment: WKInterfaceObjectVerticalAlignment)
```

## Parameters

- `verticalAlignment`: The vertical alignment of the object.

## Discussion

Discussion Changes to the vertical alignment of an object are animatable.

## See Also

### Setting an Object’s Alignment

- [setHorizontalAlignment(_:)](watchkit/wkinterfaceobject/sethorizontalalignment(_:).md)
