<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKVoronoiNoiseSource/isDistanceEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKVoronoiNoiseSource(py)distanceEnabled"
  },
  "title" : "isDistanceEnabled"
}
-->

# isDistanceEnabled

A Boolean value that specifies whether generated noise values incorporate the distance from each point to the nearest seed point.

```
var isDistanceEnabled: Bool { get set }
```

## Discussion

A Voronoi noise source generates a field of noise values by randomly picking seed points at random positions in a space, then dividing the space into cells so that all the points in a cell are closer to that cell’s seed point than to any other seed point.

After dividing space into cells, the noise source randomly assigns a unique value to each. If this property’s value is <doc://com.apple.documentation/documentation/Swift/false> (the default), all points within a cell have the same value, creating a crystalline appearance. If this property’s value is <doc://com.apple.documentation/documentation/Swift/true>, the noise source adds to each point’s value the distance from that point to the nearest seed point. With a low value for the [`displacement`](/documentation/GameplayKit/GKVoronoiNoiseSource/displacement) property, adding distance to noise can create textures like cracked mud; with a high displacement value, adding distance creates textures like bubbling liquid.

---

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)