Instance Propertyswift-package-manager 6.0.1PackageDescription
prereleaseIdentifiers
The pre-release identifier according to the semantic versioning standard, such as -beta.1
.
let prereleaseIdentifiers: [String]
Other members in extension
Type members
init?(String
) Initializes a version struct with the provided version string.
init(Int, Int, Int, prereleaseIdentifiers: [String], buildMetadataIdentifiers: [String]
) Initializes a version struct with the provided components of a semantic version.
init(extendedGraphemeClusterLiteral: String
) Initializes a version struct with the provided extended grapheme cluster.
init(stringLiteral: String
) Initializes a version struct with the provided string literal.
init(unicodeScalarLiteral: String
) Initializes a version struct with the provided Unicode string.
static func < (lhs: Version, rhs: Version
) -> Bool Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
static func == (lhs: Version, rhs: Version
) -> Bool Returns a Boolean value indicating whether two values are equal.
Instance members
let buildMetadataIdentifiers: [String]
The build metadata of this version according to the semantic versioning standard, such as a commit hash.
var description: String
A textual description of the version object.
let major: Int
The major version according to the semantic versioning standard.
let minor: Int
The minor version according to the semantic versioning standard.
let patch: Int
The patch version according to the semantic versioning standard.