---
title: isPositive
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/date/componentsformatstyle/ispositive
---

# isPositive

Controls whether the format input is formatted as a positive or negative range.

## Declaration

```swift
var isPositive: Bool
```

## Discussion

Discussion When the range is formatted as a positive value, the returned string describes the time from lowerBound to upperBound. When isPositive is set to false, the returned string describes the time from upperBound to lowerBound.
