Home > AI > IOS > Foundation > Bundle >

get app version

extension UIApplication {
    static var appVersion: String? {
        return Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String
    }
}

Leave a Reply