---
title: scalesPageToFit
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiwebview/scalespagetofit
---

# scalesPageToFit

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

## Declaration

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

## Discussion

Discussion If true, the webpage is scaled to fit and the user can zoom in and zoom out. If false, user zooming is disabled. The default value is false.

## See Also

### Setting web content properties

- [allowsLinkPreview](uikit/uiwebview/allowslinkpreview.md)
- [scrollView](uikit/uiwebview/scrollview.md)
- [suppressesIncrementalRendering](uikit/uiwebview/suppressesincrementalrendering.md)
- [keyboardDisplayRequiresUserAction](uikit/uiwebview/keyboarddisplayrequiresuseraction.md)
- [dataDetectorTypes](uikit/uiwebview/datadetectortypes.md)
