---
title: "show(length:)"
framework: swift
role: symbol
role_heading: Type Method
path: "swift/duration/unitsformatstyle/zerovalueunitsdisplaystrategy/show(length:)"
---

# show(length:)

Returns display strategy that shows leading fields whose value is zero, with a given number of digits.

## Declaration

```swift
static func show(length: Int) -> Duration.UnitsFormatStyle.ZeroValueUnitsDisplayStrategy
```

## Parameters

- `length`: The number of digits to show for zero-value units.

## See Also

### Using common strategies

- [hide](swift/duration/unitsformatstyle/zerovalueunitsdisplaystrategy/hide.md)
