---
title: positiveInfinity
framework: coremedia
role: symbol
role_heading: Type Property
path: coremedia/cmtime/positiveinfinity
---

# positiveInfinity

A value that represents positive infinity.

## Declaration

```swift
static let positiveInfinity: CMTime
```

## Discussion

Discussion Don’t test a time against this constant using (time == positiveInfinity) because there are many times that are also positive infinity. Use CMTIME_IS_POSITIVEINFINITY(_:) instead.

## See Also

### Constants

- [zero](coremedia/cmtime/zero.md)
- [invalid](coremedia/cmtime/invalid.md)
- [indefinite](coremedia/cmtime/indefinite.md)
- [negativeInfinity](coremedia/cmtime/negativeinfinity.md)
