Answers for "swift latest version"

4

How do I see which version of Swift I'm using

// Open the Terminal and write:

swift -version
Posted by: Guest on March-05-2020
0

swift 5 get app version

import Foundation

let versionString = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "Default String to shut up warning"
let buildString = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String ?? "Default String to shut up warning"
Posted by: Guest on October-01-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language