---
title: "trailing(relativeTo:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nshorizontaldirection/trailing(relativeto:)"
---

# trailing(relativeTo:)

Returns the trailing direction in the given user interface layout direction.

## Declaration

```swift
static func trailing(relativeTo layoutDirection: NSUserInterfaceLayoutDirection) -> NSHorizontalDirection
```
