Skip to content

Instantly share code, notes, and snippets.

View danionescu's full-sized avatar

Dan Ionescu danionescu

View GitHub Profile
@danionescu
danionescu / UIApplication+AppVersion.swift
Created February 14, 2017 18:58 — forked from ashleymills/UIApplication+AppVersion.swift
UIApplication extension to get app version / build
extension UIApplication {
class func appVersion() -> String {
return NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString") as! String
}
class func appBuild() -> String {
return NSBundle.mainBundle().objectForInfoDictionaryKey(kCFBundleVersionKey as String) as! String
}