BPKDialogIconDefinition

@interface BPKDialogIconDefinition : NSObject

An object that represents the icon displayed atop a dialog.

  • The background color behind the icon

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIColor *_Nonnull iconBackgroundColor;

    Swift

    var iconBackgroundColor: UIColor { get }
  • The icon to show at the top of the dialog

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIImage *_Nonnull iconImage;

    Swift

    var iconImage: UIImage { get }
  • Create an instance of BPKDialogIconDefinition.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIcon:(nonnull UIImage *)iconImage
                     iconBackgroundColor:(nonnull UIColor *)iconBackgroundColor;

    Swift

    init(icon iconImage: UIImage, iconBackgroundColor: UIColor)

    Parameters

    iconBackgroundColor

    the background color of the icon view.

    iconImage

    the icon to render in the icon view. Should preferably be a template image. Otherwise the image must be 24x24 points.