A key for allowing draft mode. The associated value is a Boolean value packaged as an
NSNumber object. It’s best not to use draft mode if the image needs to be drawn without draft mode at a later time, because changing the value from
NO is an expensive operation. If the optional scale factor is smaller than a certain value, additionally setting draft mode can improve image decoding speed without any perceivable loss of quality. However, turning on draft mode does not have any effect if the scale factor is not below this threshold.
- iOS 10.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 10.0+
- Core Image