---
title: reshape()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsopenglview/reshape()
---

# reshape()

Called by Cocoa when the view’s visible rectangle or bounds change.

## Declaration

```swift
func reshape()
```

## Discussion

Discussion Cocoa typically calls this method during scrolling and resize operations but may call it in other situations when the view’s rectangles change. The default implementation does nothing. You can override this method if you need to adjust the viewport and display frustum.

## See Also

### Managing the Visible Region

- [update()](appkit/nsopenglview/update().md)
