Instance Property


The user interface layout direction appropriate for arranging the immediate content of the view.


var effectiveUserInterfaceLayoutDirection: UIUserInterfaceLayoutDirection { get }


When a view’s immediate content is being arranged or drawn, you should always consult the value of this property. In addition, note that you can’t assume that the value propagates through the view’s subtree.

See Also

Managing the User Interface Direction

var semanticContentAttribute: UISemanticContentAttribute

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.

class func userInterfaceLayoutDirection(for: UISemanticContentAttribute)

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

class func userInterfaceLayoutDirection(for: UISemanticContentAttribute, relativeTo: UIUserInterfaceLayoutDirection)

Returns the layout direction implied by the specified semantic content attribute, relative to the specified layout direction.