<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CALayer/magnificationFilter",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CALayer(py)magnificationFilter"
  },
  "title" : "magnificationFilter"
}
-->

# magnificationFilter

The filter used when increasing the size of the content.

```
var magnificationFilter: CALayerContentsFilter { get set }
```

## Discussion

The possible values for this property are listed in [Scaling Filters](/documentation/QuartzCore/scaling-filters).

The default value of this property is [`linear`](/documentation/QuartzCore/CALayerContentsFilter/linear).

[Figure 1](/documentation/quartzcore/calayer/1410907-magnificationfilter#2851435) shows the difference between linear and nearest filtering when a 10 x 10 point image of a circle is magnified by a scale of 10.

![Circle with different magnification filters](images/com.apple.quartzcore/media-2851435@2x.png)

The circle on the left uses [`linear`](/documentation/QuartzCore/CALayerContentsFilter/linear) and the circle on the right uses [`nearest`](/documentation/QuartzCore/CALayerContentsFilter/nearest).

---

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)