---
title: dropAll
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/dropall
---

# dropAll

The drop all zero units behavior. This behavior drops all units whose values are 0. For example, when days, hours, minutes, and seconds are allowed, the abbreviated version of one hour is displayed as “1h”.

## Declaration

```swift
static var dropAll: DateComponentsFormatter.ZeroFormattingBehavior { get }
```

## See Also

### Constants

- [default](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/default.md)
- [dropLeading](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/dropleading.md)
- [dropMiddle](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/dropmiddle.md)
- [dropTrailing](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/droptrailing.md)
- [pad](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/pad.md)
