Bundle

extension Bundle
  • Obtain the bundle’s identifier in all lowercase characters

    Declaration

    Swift

    public var bundleID: String { get }
  • Obtain a BuildScheme for this bundle

    Declaration

    Swift

    public var scheme: BuildScheme { get }
  • Obtain the release version number from the bundle info

    Declaration

    Swift

    public var releaseVersionNumber: String { get }
  • Obtain the build version number from the bundle info

    Declaration

    Swift

    public var buildVersionNumber: String { get }
  • Obtain a version string from the bundle info

    Declaration

    Swift

    public var versionString: String { get }
  • Obtain a UIImage to use for an effect on/off button.

    Declaration

    Swift

    public static func effectEnabledButtonImage(
      enabled: Bool, compatibleWith: UITraitCollection? = nil
    ) -> UIImage

    Parameters

    enabled

    the state of the button

    compatibleWith

    traits to consider when looking for an image

    Return Value

    UIImage instance for the button state