---
title: "orderFront(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/orderfront(_:)"
---

# orderFront(_:)

Moves the window to the front of its level in the screen list, without changing either the key window or the main window.

## Declaration

```swift
func orderFront(_ sender: Any?)
```

## Parameters

- `sender`: The message’s sender.

## Discussion

Discussion The default animation based on the window type will be used when the window is ordered front unless it has been modified by the animationBehavior property.

## See Also

### Related Documentation

- [makeKeyAndOrderFront(_:)](appkit/nswindow/makekeyandorderfront(_:).md)

### Managing Window Layers

- [orderOut(_:)](appkit/nswindow/orderout(_:).md)
- [orderBack(_:)](appkit/nswindow/orderback(_:).md)
- [orderFrontRegardless()](appkit/nswindow/orderfrontregardless().md)
- [order(_:relativeTo:)](appkit/nswindow/order(_:relativeto:).md)
- [level](appkit/nswindow/level-swift.property.md)
- [NSWindow.Level](appkit/nswindow/level-swift.struct.md)
