Latest 0.0.4
Homepage https://github.com/guhungry/ios-version
License MIT
Platforms ios 8.0
Dependencies WCExtensions
Authors

iOS Version

Build Status
codecov
LICENSE
Platform compatible

Simple version number compare in MAJOR(.MINOR)?(.PATCH)? format

Download

Install using CocoaPods, add dependency in Podfile:

pod 'WCVersion', '~> 0.0.0'

CocoaPods compatible

Examples

import WCVersion

VersionNumber("1.2.3") > VersionNumber("1.5.3")
false

VersionNumber("1.2.3") < VersionNumber("1.5.3")
true

VersionNumber("1.2.3") == VersionNumber("1.5.3")
false

VersionNumber("4.1.7") < VersionNumber("2.5.2")
false

VersionNumber("4.1.7") > VersionNumber("2.5.2")
true

VersionNumber("4.1.7") == VersionNumber("2.5.2")
false

VersionNumber("9.1.2") < VersionNumber("9.1.5")
true

VersionNumber("9.1.2") > VersionNumber("9.1.5")
false

VersionNumber("9.1.2") == VersionNumber("9.1.5")
false

VersionNumber("2.3.1") > VersionNumber("2.3.1")
false

VersionNumber("2.3.1") < VersionNumber("2.3.1")
false

VersionNumber("2.3.1") == VersionNumber("2.3.1")
true

Latest podspec

{
    "name": "WCVersion",
    "version": "0.0.4",
    "summary": "Simple version number compare in MAJOR(.MINOR)?(.PATCH)? format",
    "description": "Simple version number compare in MAJOR(.MINOR)?(.PATCH)? format written in swift",
    "homepage": "https://github.com/guhungry/ios-version",
    "license": "MIT",
    "authors": {
        "Woraphot Chokratanasombat": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/guhungry/ios-version.git",
        "tag": "0.0.4"
    },
    "source_files": "WCVersion/**/*.swift",
    "dependencies": {
        "WCExtensions": []
    },
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This