Latest 0.0.2
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 = §"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.2",
    "summary": "A better way to compare the version level.",
    "description": "A better way to compare the version level in your project.",
    "homepage": "https://github.com/zhwayne/OhMyVersion",
    "license": "MIT",
    "authors": {
        "wayne": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/zhwayne/OhMyVersion.git",
        "tag": "0.0.2"
    },
    "source_files": "OhMyVersion/**/*",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This