Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adds strong typed build info to UIApplication
import Foundation
extension UIApplication {
var build: String {
return NSBundle.mainBundle().infoDictionary!["CFBundleVersion"] as! String
}
var version: String {
return NSBundle.mainBundle().infoDictionary!["CFBundleShortVersionString"] as! String
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment