Skip to content

EXTENSION

Version

swift
extension Version: Comparable

Properties

description

swift
public var description: String

Methods

<(_:_:)

swift
public static func < (lhs: Version, rhs: Version) -> Bool

Parameters

NameDescription
lhsA value to compare.
rhsAnother value to compare.

init(string:)

swift
public init?(string: String)

Create a version object from string.

  • Parameters:
    • string: The string to parse.

Parameters

NameDescription
stringThe string to parse.

init(stringLiteral:)

swift
public init(stringLiteral value: String)

Parameters

NameDescription
valueThe value of the new instance.

Released under the MIT License.