Contents

windowTitlebarLayoutDirection

The direction the window’s title bar lays text out, either left to right or right to left.

Declaration

var windowTitlebarLayoutDirection: NSUserInterfaceLayoutDirection { get }

Discussion

The layout direction of the window title bar includes the standard window buttons (close, minimize, maximize) and the title for the window. In general, this returns NSUserInterfaceLayoutDirection.rightToLeft if the primary system language is right to left. The layout direction may be right to left even in applications that don’t have a right to left language localization. Refer to this value if the application uses titlebarAppearsTransparent and places controls under the title bar.

See Also

Managing Title Bars