Version
public struct Version : Codable
extension Version: Comparable
extension Version: CustomStringConvertible
Represents a firmware version made up of a sequence of digits labeled major, minor and micro.
-
Compares two
Version
objects to determine if the first is less than the second.Declaration
Swift
public static func < (lhs: Version, rhs: Version) -> Bool
Parameters
lhs
a
Version
object.rhs
an additional
Version
object.Return Value
true
if the first object’s deemed less than the second;false
otherwise. -
Declaration
Swift
public var description: String { get }
-
Returns a version object created from a 9 digit string.
Declaration
Swift
public static func version(fromDecimalEncodedString string: String) -> Version
Parameters
string
the string formatted as 9 digits.
Return Value
the
Version
object created ornil
if the format is invalid.