---
title: viewDidMoveToWindow()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsvisualeffectview/viewdidmovetowindow()
---

# viewDidMoveToWindow()

Notifies the view that it moved to a new window.

## Declaration

```swift
func viewDidMoveToWindow()
```

## Discussion

Discussion When subclassing, you can override this method and use it to perform any tasks associated with the change. You must call super at some point during your implementation.

## See Also

### Handling Moves to a Different Window

- [viewWillMove(toWindow:)](appkit/nsvisualeffectview/viewwillmove(towindow:).md)
