Version

public struct Version : Hashable, Codable

Struct to represent basic Semantic versioning 2.0.0 https://semver.org

  • Update type, based on comparison of two semantic versions, i.e. 1.1.1 < 2.0.0

    See more

    Declaration

    Swift

    public enum UpdateType
  • String representation of version in X.Y.Z format

    Declaration

    Swift

    public var string: String { get }
  • Implementation of Comparable protocol, allows to compare objects of Version type

    Declaration

    Swift

    public static func < (lhs: Version, rhs: Version) -> Bool
  • Initializes Version from string, examples: 1, 1.0, 0.2.5

    Declaration

    Swift

    public init(stringLiteral version: String)