BPKCardDivider

@interface BPKCardDivider : UIView

BPKCardDivider is a subclass of UIView which contains the Skyscanner card divider style.

  • The orientation of the card divider.

    Declaration

    Objective-C

    @property (nonatomic) UILayoutConstraintAxis orientation;

    Swift

    var orientation: NSLayoutConstraint.Axis { get set }
  • Create a BPKCardDivider with orientation initially set.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOrientation:(UILayoutConstraintAxis)orientation;

    Swift

    init(orientation: NSLayoutConstraint.Axis)

    Parameters

    orientation

    Whether the divider is for a vertical or horizontal layout.