Contents

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.

Declaration

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

Parameters

  • version:

    The minimum version for the version range.