Instance Method

setHorizontalAlignment(_:)

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

Declaration

func setHorizontalAlignment(_ horizontalAlignment: WKInterfaceObjectHorizontalAlignment)

Parameters

horizontalAlignment

The horizontal alignment of the object.

Discussion

Changes to the horizontal alignment of an object are animatable.

See Also

Setting an Object’s Alignment

func setVerticalAlignment(WKInterfaceObjectVerticalAlignment)

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