Initializer

init(extendedGraphemeClusterLiteral:)

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

Declaration

init(extendedGraphemeClusterLiteral value: String)

Parameters

version

An extended grapheme cluster to use for creating a new version object.

See Also

Creating a Version

init(Version)

Initializes and returns a newly allocated version struct for the provided 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(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.