Need help with Versions?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

zenangst
203 Stars 12 Forks Other 80 Commits 3 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 10,310
Swift
Xcode
swift-f...
mac
40 commits
# 735,659
Swift
Objecti...
2 commits
# 645,110
Swift
Objecti...
1 commit
# 86,373
gnss
travis
Jenkins
executa...
1 commit

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?

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.