Bundle
extension Bundle
-
Returns version text using the info plist value for the
CFBundleShortVersionStringkey, if it exists.Note
For example, “Version 1.0”Declaration
Swift
public var shortVersionString: String? { get } -
Returns version and build text using the info plist value for the
CFBundleShortVersionStringkey and theCFBundleVersionkey, if they exist.Note
For example, “Version 1.0 (345)”Declaration
Swift
public var fullVersionString: String? { get } -
Returns the app name using the info plist value for the
CFBundleNamekey, if it exists.Declaration
Swift
public var appName: String? { get } -
Returns the copyright information using the info plist value for the
NSHumanReadableCopyrightkey, if it exists.Declaration
Swift
public var copyright: String? { get }
View on GitHub
Bundle Extension Reference