home, SWIFT, updated

How do I get the App version using Swift?

To get App version in swift Use

if let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String{
        // appVersion contains your value
        }

Related Articles

post a comment