---
title: makeKeyAndVisible()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiwindow/makekeyandvisible()
---

# makeKeyAndVisible()

Shows the window and makes it the key window.

## Declaration

```swift
func makeKeyAndVisible()
```

## Discussion

Discussion This is a convenience method to show the current window and position it in front of all other windows at the same level or lower. If you only want to show the window, change its isHidden property to false.

## See Also

### Making windows key

- [isKeyWindow](uikit/uiwindow/iskeywindow.md)
- [canBecomeKey](uikit/uiwindow/canbecomekey.md)
- [makeKey()](uikit/uiwindow/makekey().md)
- [becomeKey()](uikit/uiwindow/becomekey().md)
- [resignKey()](uikit/uiwindow/resignkey().md)
