---
title: scale
framework: quicklookthumbnailing
role: symbol
role_heading: Instance Property
path: quicklookthumbnailing/qlthumbnailgenerator/request/scale
---

# scale

The pixel density of the display on the intended device.

## Declaration

```swift
var scale: CGFloat { get }
```

## Discussion

Discussion This property represents the scale factor, or pixel density, of the device’s display as described in Image Size and Resolution. For example, the value for a device with a @2x display is 2.0. You can pass the initializer a screen scale that isn’t the current device’s screen scale. For example, you can create thumbnails for different scales, upload them to a server, and download them later on devices with a different screen scale.

## See Also

### Describing the Requested Thumbnail

- [size](quicklookthumbnailing/qlthumbnailgenerator/request/size.md)
- [contentType](quicklookthumbnailing/qlthumbnailgenerator/request/contenttype.md)
- [representationTypes](quicklookthumbnailing/qlthumbnailgenerator/request/representationtypes-swift.property.md)
- [minimumDimension](quicklookthumbnailing/qlthumbnailgenerator/request/minimumdimension.md)
- [iconMode](quicklookthumbnailing/qlthumbnailgenerator/request/iconmode.md)
- [QLThumbnailGenerator.Request.RepresentationTypes](quicklookthumbnailing/qlthumbnailgenerator/request/representationtypes-swift.struct.md)
