---
title: "flexible(_:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/nscollectionlayoutspacing/flexible(_:)"
---

# flexible(_:)

Creates a space equivalent to or greater than the specified number of points, depending on the available space.

## Declaration

```swift
class func flexible(_ flexibleSpacing: CGFloat) -> Self
```

## See Also

### Creating spacing

- [fixed(_:)](uikit/nscollectionlayoutspacing/fixed(_:).md)
