<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebUIDelegate/webView(_:setResizable:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebUIDelegate(im)webView:setResizable:"
  },
  "title" : "webView(_:setResizable:)"
}
-->

# webView(_:setResizable:)

Sets whether a web view’s window can be resized.

```
optional func webView(_ sender: WebView!, setResizable resizable: Bool)
```

## Parameters

`sender`

The web view that sent the message.

`resizable`

If <doc://com.apple.documentation/documentation/Swift/true>, the web view’s window can be resized; if <doc://com.apple.documentation/documentation/Swift/false>, the window is not resizable.

## Discussion

By default, this method sets the window containing a web view to be resizable. If you display multiple web views in a window then your user interface delegate should implement this method to handle this special case. If you do not implement this method, the `NSWindow` method <doc://com.apple.documentation/documentation/AppKit/NSWindow/showsResizeIndicator> is sent to the window that contains  `sender`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)