Created
June 13, 2019 06:39
-
-
Save kwmt/51007a8237ff7d823137a5a62af0bcc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let required = "1.0.10" | |
let current = "1.0.2" | |
let result = required.compare(current, options: .numeric) | |
print(result.rawValue) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment