Bundle

public extension Bundle

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

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

    Declaration

    Swift

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

    Declaration

    Swift

    var appVersionString: String { get }
  • The build version, as a string. It is required, and “” 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 }