Index

RBTooltipContainerView.h

Protocols

Classes


RBTooltipContainerView

A tooltip container view that can be configured to display any content.

Properties

A delegate to receive dismissal events.
public weak delegate RBTooltipViewDelegate? { get set }

The content view that will be displayed within the tooltip.
public contentView UIView? { get set }

Whether or not the tooltip is currently presented.
public isPresented Bool { get }

Whether or not the tooltip is currently presenting.
public isPresenting Bool { get }

Whether or not the tooltip is currently dismissing.
public isDismissing Bool { get }

The view in which the tooltip is being presented.
public weak containerView UIView? { get }

The view at which the tooltip is being presented.
public weak targetView UIView? { get }

The corner radius of the tooltip bubble.
public cornerRadius CGFloat { get set }

The size of the pointer on the tooltip bubble.
public pointerSize CGFloat { get set }

The background color of the tooltip bubble.
public backgroundColor UIColor? { get set }

Whether the tooltip bubble should not be dismissed when tapped by the user. Default = false.
public disableTapToDismiss Bool { get set }

The color of the border of the tooltip bubble.
public borderColor UIColor? { get set }

The width of the border of the tooltip bubble in points (pt).
public borderWidth CGFloat { get set }

The type of animation that should be used when presenting and dismissing the tooltip.
public animationType RBTooltipAnimationType { get set }

Functions

Presents the tooltip.
@param targetView : The view at which the tooltip should be presented.
@param containerView : The containing view in which the tooltip should be presented.
@param animated : Whether or not the transition should be animated.
@param completion : An optional block to be called when the presentation is complete.
- (void)presentPointingAtView:(nonnull UIView *)targetView

Dismisses the tooltip.
@param animated : Whether or not the transition should be animated.
@param completion : An optional block to be called when the dismissal is complete.
- (void)dismissAnimated:(BOOL)animated