---
title: minLength
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/spacer/minlength
---

# minLength

The minimum length this spacer can be shrunk to, along the axis or axes of expansion.

## Declaration

```swift
var minLength: CGFloat?
```

## Discussion

Discussion If nil, the system default spacing between views is used.

## See Also

### Creating a spacer

- [init(minLength:)](swiftui/spacer/init(minlength:).md)
