Initializer

init(_:)

Initializes and returns a newly allocated version struct for the provided version.

Declaration

init(_ version: Version)

Parameters

version

A version object to use for creating a new version object.

See Also

Creating a Version

init?(String)

Initializes and returns a newly allocated version struct for the provided version string.

init(Int, Int, Int, prereleaseIdentifiers: [String], buildMetadataIdentifiers: [String])

Initializes and returns a newly allocated version struct for the provided components of a semantic version.

init(extendedGraphemeClusterLiteral: String)

Initializes and returns a newly allocated version struct for the provided extended grapheme cluster.

init(stringLiteral: String)

Initializes and returns a newly allocated version struct for the provided string literal.

init(unicodeScalarLiteral: String)

Initializes and returns a newly allocated version struct for the provided Unicode string.