---
title: ranges
framework: swift
role: symbol
role_heading: Instance Property
path: swift/rangeset/ranges-swift.property
---

# ranges

A collection of the ranges that make up the range set.

## Declaration

```swift
var ranges: RangeSet<Bound>.Ranges { get }
```

## Discussion

Discussion The ranges that you access by using ranges never overlap, are never empty, and are always in increasing order.
