<!--
{
  "availability" : [
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceObject/setVerticalAlignment(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceObject(im)setVerticalAlignment:"
  },
  "title" : "setVerticalAlignment(_:)"
}
-->

# setVerticalAlignment(_:)

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

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

## Parameters

`verticalAlignment`

The vertical alignment of the object.

## Discussion

Changes to the vertical alignment of an object are animatable.

---

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)