---
title: maximumDistance
framework: coreimage
role: symbol
role_heading: Instance Property
path: coreimage/cidistancegradientfromredmask/maximumdistance
---

# maximumDistance

Determines the maximum distance to the mask that can be measured. Distances between zero and the maximum will be normalized to zero and one.

## Declaration

```swift
var maximumDistance: Float { get set }
```
