How do I see which version of Swift I'm using
// Open the Terminal and write:
swift -version
How do I see which version of Swift I'm using
// Open the Terminal and write:
swift -version
swift get app version and build
import Foundation
extension Bundle {
var shortVersion: String {
if let result = infoDictionary?["CFBundleShortVersionString"] as? String {
return result
} else {
assert(false)
return ""
}
}
var buildVersion: String {
if let result = infoDictionary?["CFBundleVersion"] as? String {
return result
} else {
assert(false)
return ""
}
}
var fullVersion: String {
return "\(shortVersion)(\(buildVersion))"
}
}
// Usage:
someLabel.text = Bundle.main.versionNumber
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us