ClosedRange

extension ClosedRange where Bound == Version

Available where Bound == Version

  • Important

    Returns false if version has prerelease identifiers unless the range also contains prerelease identifiers.

    Declaration

    Swift

    public func contains(_ version: Version) -> Bool

    Return Value

    true if the provided Version exists within this range.