Bundle

extension Bundle

This extension adds a few simple accessors for some of the more common bundle items.

General Stuff for common Apple-Supplied Items

  • The app name, as a string. It is required, and “ERROR” is returned if it is not present.

    Declaration

    Swift

    var appDisplayName: String { get }
  • The app version, as a string. It is required, and “ERROR” is returned if it is not present.

    Declaration

    Swift

    var appVersionString: String { get }
  • The build version, as a string. It is required, and “ERROR” is returned if it is not present.

    Declaration

    Swift

    var appVersionBuildString: String { get }
  • If there is a copyright string, it is returned here. It may be nil.

    Declaration

    Swift

    var copyrightString: String? { get }

Specific to this app.

  • If there is a copyright site URI, it is returned here as a String. It may be nil.

    Declaration

    Swift

    var siteURIAsString: String? { get }
  • If there is a help site URI, it is returned here as a String. It may be nil.

    Declaration

    Swift

    var helpURIAsString: String? { get }
  • If there is a copyright site URI, it is returned here as a URL. It may be nil.

    Declaration

    Swift

    var siteURI: URL? { get }
  • If there is a help site URI, it is returned here as a URL. It may be nil.

    Declaration

    Swift

    var helpURI: URL? { get }