---
title: locations
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/meshgradient/locations-swift.property
---

# locations

The array of locations. Must contain width x height elements.

## Declaration

```swift
var locations: MeshGradient.Locations
```
