<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/ClosedRange/init(uncheckedBounds:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:SN15uncheckedBoundsSNyxGx5lower_x5uppert_tcfc"
  },
  "title" : "init(uncheckedBounds:)"
}
-->

# init(uncheckedBounds:)

Creates an instance with the given bounds.

```
init(uncheckedBounds bounds: (lower: Bound, upper: Bound))
```

## Parameters

`bounds`

A tuple of the lower and upper bounds of the range.

## Discussion

Because this initializer does not perform any checks, it should be used
as an optimization only when you are absolutely certain that `lower` is
less than or equal to `upper`. Using the closed range operator (`...`)
to form `ClosedRange` instances is preferred.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)