Type Method

interfaceLayoutDirectionForSemanticContentAttribute:

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

Declaration

+ (WKInterfaceLayoutDirection)interfaceLayoutDirectionForSemanticContentAttribute:(WKInterfaceSemanticContentAttribute)semanticContentAttribute;

Parameters

semanticContentAttribute

The semantic content attribute. For a list of possible values, see WKInterfaceSemanticContentAttribute.

Return Value

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

See Also

Getting the Layout Direction

layoutDirection

The layout direction of the user interface.

WKInterfaceSemanticContentAttribute

A semantic description of the view’s contents, used to determine whether the view should be flipped when switching between left-to-right and right-to-left layouts.

WKInterfaceLayoutDirection

Specifies the directional flow of the user interface.