Bundle

extension Bundle
  • Returns version text using the info plist value for the CFBundleShortVersionString key, 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 CFBundleShortVersionString key and the CFBundleVersion key, 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 CFBundleName key, if it exists.

    Declaration

    Swift

    public var appName: String? { get }
  • Returns the copyright information using the info plist value for the NSHumanReadableCopyright key, if it exists.

    Declaration

    Swift

    public var copyright: String? { get }