Created
July 24, 2017 20:45
-
-
Save bhrott/cf6f9b25143e5b03f37d92ab35f473b7 to your computer and use it in GitHub Desktop.
IOS :: Swift :: Get app version
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
func getAppVersion() -> String? { | |
if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String { | |
return version | |
} | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment