Versions 0,0 CocoaPods

:sparkle:Helping you find inner peace when comparing version numbers in Swift.

Versions logo

Helping you find inner peace when comparing version numbers in Swift.

Comparing with the current applications version couldn’t be easier.

// App.version is 1.0.0
if App.version.olderThan("2.0.0") {
  // Prompt user to update
}

But you can apply this to more things than just the CFBundleShortVersionString.

let currentVersion = "1.0.1a"
if currentVersion.olderThan("1.1.3") {
    // update
}

Versions also support semantic versioning (Major, Minor, Patch)

if "1.0".semanticCompare("2.0") == Semantic.Major) {
    // major update
}

CocoaPod

Version License Platform

Verisons is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Versions"

Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create pull request

Who made this?

Related Repositories

homebrew-versions

homebrew-versions

Alternate versions of casks ...

versions

versions

Versions, A small module for creating a flexible CDN application ...

gradle-dependency-lock-plugin

gradle-dependency-lock-plugin

A plugin to allow people using dynamic dependency versions to lock them to specific versions. ...

composer-versions-check

composer-versions-check

Checks if packages are up to date to last major versions after update ...

qz-print

qz-print

Archive for legacy qz-print versions (1.8, 1.9). See https://github.com/qzind/tray for modern versions. ...


Top Contributors

zenangst kostiakoval joshjiav5 acecilia

Releases

-   0.5.0 zip tar
-   0.4.0 zip tar
-   0.3.0 zip tar
-   0.2.1 zip tar
-   0.2 zip tar
-   0.1 zip tar