---
title: legendAlignment
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkscaleview/legendalignment
---

# legendAlignment

The alignment of the distance information in the scale view.

## Declaration

```swift
var legendAlignment: MKScaleView.Alignment { get set }
```

## Discussion

Discussion This property determines whether measurements start at the leading or trailing edge of the view. The default value of this property is MKScaleView.Alignment.leading.

## See Also

### Getting the scale view attributes

- [mapView](mapkit/mkscaleview/mapview.md)
- [scaleVisibility](mapkit/mkscaleview/scalevisibility.md)
- [MKScaleView.Alignment](mapkit/mkscaleview/alignment.md)
