Skip to content

Instantly share code, notes, and snippets.

@stevenchou1130
Last active December 11, 2020 03:04
Show Gist options
  • Save stevenchou1130/947de5f94a13070d5aaba3f49380d1cb to your computer and use it in GitHub Desktop.
Save stevenchou1130/947de5f94a13070d5aaba3f49380d1cb to your computer and use it in GitHub Desktop.
let currentVersion = appVersion.versionToInt()
let storeVersion = json["results"][0]["version"].stringValue.versionToInt()
let isCurrentVersionNewer = storeVersion.lexicographicallyPrecedes(currentVersion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment