---
title: "custom(_:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/listsectionspacing/custom(_:)"
---

# custom(_:)

Creates a custom spacing value.

## Declaration

```swift
static func custom(_ spacing: CGFloat) -> ListSectionSpacing
```

## Parameters

- `spacing`: The amount of spacing to use.

## See Also

### Getting section spacing

- [default](swiftui/listsectionspacing/default.md)
- [compact](swiftui/listsectionspacing/compact.md)
