---
title: "leading(_:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/windowplacement/position/leading(_:)"
---

# leading(_:)

Window position relative to the leading edge of another window.

## Declaration

```swift
static func leading(_ relativeWindow: WindowProxy) -> WindowPlacement.Position
```

## Parameters

- `relativeWindow`: The existing window that the new window will be placed relative to.
