Version

public struct Version : Codable, Equatable, Hashable

The Version

  • The major version

    Declaration

    Swift

    public let major: Int
  • The minor version

    Declaration

    Swift

    public let minor: Int
  • The patch version

    Declaration

    Swift

    public let patch: Int
  • Creates an instance initialized to the given string value.

    Declaration

    Swift

    public init(stringLiteral value: String)

    Parameters

    value

    The value of the new instance.

  • Returns a Boolean value indicating whether the value of the first

    Declaration

    Swift

    public static func < (lhs: Version, rhs: Version) -> Bool
  • A textual representation of this instance.

    Declaration

    Swift

    public var description: String { get }
  • The default Version

    Declaration

    Swift

    static var `default`: Version { get }