<!--
{
  "availability" : [
    "watchOS: 2.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceDevice/interfaceLayoutDirection(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceDevice(cm)interfaceLayoutDirectionForSemanticContentAttribute:"
  },
  "title" : "interfaceLayoutDirection(for:)"
}
-->

# interfaceLayoutDirection(for:)

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

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

## Parameters

`semanticContentAttribute`

The semantic content attribute. For a list of possible values, see [`WKInterfaceSemanticContentAttribute`](/documentation/WatchKit/WKInterfaceSemanticContentAttribute).

## Return Value

The user interface layout direction (left-to-right or right-to-left). For a list of possible values, see [`WKInterfaceLayoutDirection`](/documentation/WatchKit/WKInterfaceLayoutDirection).

## Discussion

---

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)