<!--
{
  "availability" : [
    "iOS: 2.0.0 - 12.0.0",
    "iPadOS: 2.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWebView/scalesPageToFit",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWebView(py)scalesPageToFit"
  },
  "title" : "scalesPageToFit"
}
-->

# scalesPageToFit

A Boolean value determining whether the webpage scales to fit the view and the user can change the scale.

```
var scalesPageToFit: Bool { get set }
```

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true>, the webpage is scaled to fit and the user can zoom in and zoom out. If <doc://com.apple.documentation/documentation/Swift/false>, user zooming is disabled. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)