---
title: isAdaptive
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/bytecountformatter/isadaptive
---

# isAdaptive

Determines the display style of the size representation.

## Declaration

```swift
var isAdaptive: Bool { get set }
```

## Discussion

Discussion The “adaptive” algorithm is platform specific and uses a different number of fraction digits based on the magnitude (in OS X v10.8: 0 fraction digits for bytes and KB; 1 fraction digits for MB; 2 for GB and above). Otherwise the result always tries to show at least three significant digits, introducing fraction digits as necessary. Default is true.

## See Also

### Setting Formatting Styles

- [formattingContext](foundation/bytecountformatter/formattingcontext.md)
- [countStyle](foundation/bytecountformatter/countstyle-swift.property.md)
- [allowsNonnumericFormatting](foundation/bytecountformatter/allowsnonnumericformatting.md)
- [includesActualByteCount](foundation/bytecountformatter/includesactualbytecount.md)
- [allowedUnits](foundation/bytecountformatter/allowedunits.md)
- [includesCount](foundation/bytecountformatter/includescount.md)
- [includesUnit](foundation/bytecountformatter/includesunit.md)
- [zeroPadsFractionDigits](foundation/bytecountformatter/zeropadsfractiondigits.md)
