Comparing version strings in swift
[swift 3] [tested]
You need to drag the TKVersion.swift file to your project and you are done.
Create instances:
let a = TKVersion("1.2.6")
let b = TKVersion("1.3.0")
let c = TKVersion("1.3.0")
Now you can compare them easily:
a < b // true
b == c // true
b <= c // true
c > a // true
c <= a // false