<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Range/upToNextMinor(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Sn18PackageDescriptionE13upToNextMinor4fromSnyAA7VersionVGAE_tAERszrlFZ"
  },
  "title" : "upToNextMinor(from:)"
}
-->

# upToNextMinor(from:)

Returns a requirement for a version range, starting at the given minimum
version and going up to the next minor version.

```
static func upToNextMinor(from version: Version) -> Range<Bound> where Bound == Version
```

## Parameters

`version`

The minimum version for the version range.

---

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)