The scale factor of the image.
- iOS 4.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
If you load an image from a file whose name includes the
@2x modifier, the scale is set to
2. You can also specify an explicit scale factor when initializing an image from a Core Graphics image. All other images are assumed to have a scale factor of
If you multiply the logical size of the image (stored in the
size property) by the value in this property, you get the dimensions of the image in pixels.