Latest | 0.0.3 |
---|---|
Homepage | https://github.com/zhwayne/OhMyVersion |
License | MIT |
Platforms | ios 8.0 |
Authors |
A better way to compare the version level.
Usage
Here’s a simple example for comparing two versions.
/* Tips: Press the key [option + 6] to type §. */
let v1 = §"2.3.4"
let v2: Version = "10.2.4"
if v2 > v1 {
// Do something in a high version
} else {
// Do other things
}
Enjoy it!
Required
- Swift 4
- Xcode 9+
- iOS 8+
Installation
Cocoapods
platform :ios, '8.0'
use_frameworks!
pod 'OhMyVersion'
License
All source code is licensed under the MIT License.
Latest podspec
{ "name": "OhMyVersion", "version": "0.0.3", "summary": "A better way to compare the version level.", "description": "This library provides a better way to compare the version level.", "homepage": "https://github.com/zhwayne/OhMyVersion", "license": "MIT", "authors": { "wayne": "[email protected]" }, "source": { "git": "https://github.com/zhwayne/OhMyVersion.git", "tag": "0.0.3" }, "source_files": "OhMyVersion/**/*", "platforms": { "ios": "8.0" }, "pushed_with_swift_version": "4.0" }
Thu, 18 Jan 2018 20:20:30 +0000