VersionKit A lightweight semantic version checker written in Swift. Supports upto 5 version parts. ##Usage import VersionKit let version = Version(versionString: "1.2.3") if version.validate("~> 1.2") { "version will match 1.2.x.y.z" } Thanks to Henry Gibson