Static Methodswift-package-manager 6.0.1PackageDescription->Swift
upToNextMajor(from:)
Returns a requirement for a version range, starting at the given minimum version and going up to the next major version. This is the recommended version requirement.
PackageRequirement.swift:220static func upToNextMajor(from version: Version) -> Range<Bound> where Bound == Version
Parameters
- version
The minimum version for the version range.
Other members in extension
Type members
static func upToNextMinor(from: Version
) -> Range<Bound> Returns a requirement for a version range, starting at the given minimum version and going up to the next minor version.