BPKFlareView

@interface BPKFlareView : UIView

A BPKFlareView is a subclass of UIView

  • Determines where the flare pointer will be displayed. By default it will point downwards at the bottom of the FlareView.

    Declaration

    Objective-C

    @property (nonatomic) BPKFlarePosition flarePosition;

    Swift

    var flarePosition: BPKFlarePosition { get set }
  • A view that can be used to show content in the background. Note that some of this content may be clipped by the flare shape.

    Declaration

    Objective-C

    @property (nonatomic) UIView *_Nonnull backgroundView;

    Swift

    var backgroundView: UIView { get set }
  • A view that can be used to show content in front of the background. The content view will never be clipped by the flare shape.

    Declaration

    Objective-C

    @property (nonatomic) UIView *_Nonnull contentView;

    Swift

    var contentView: UIView { get set }
  • The corner radius to apply to the corners of the view. This does not affect the share of the flare itself.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat cornerRadius;

    Swift

    var cornerRadius: CGFloat { get set }
  • Creates a BPKFlareView with a decoder (typically when creating from Storyboards)

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCoder:(nonnull NSCoder *)aDecoder;

    Swift

    init(coder aDecoder: NSCoder)

    Parameters

    aDecoder

    Decoder object to extract parameters from

    Return Value

    BPKFlareView instance.

  • Create a BPKFlareView with a given frame.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFrame:(CGRect)frame;

    Swift

    init(frame: CGRect)

    Parameters

    frame

    The initial frame of the flareView.

    Return Value

    BPKFlareView instance.