---
title: "interfaceLayoutDirection(for:)"
framework: watchkit
role: symbol
role_heading: Type Method
path: "watchkit/wkinterfacedevice/interfacelayoutdirection(for:)"
---

# interfaceLayoutDirection(for:)

Returns the user interface direction for the given semantic content attribute.

## Declaration

```swift
class func interfaceLayoutDirection(for semanticContentAttribute: WKInterfaceSemanticContentAttribute) -> WKInterfaceLayoutDirection
```

## Parameters

- `semanticContentAttribute`: The semantic content attribute. For a list of possible values, see doc://com.apple.watchkit/documentation/WatchKit/WKInterfaceSemanticContentAttribute.

## Return Value

Return Value The user interface layout direction (left-to-right or right-to-left). For a list of possible values, see WKInterfaceLayoutDirection.

## See Also

### Accessing the Layout Direction

- [layoutDirection](watchkit/wkinterfacedevice/layoutdirection.md)
- [WKInterfaceSemanticContentAttribute](watchkit/wkinterfacesemanticcontentattribute.md)
- [WKInterfaceLayoutDirection](watchkit/wkinterfacelayoutdirection.md)
