BTUIKPaymentOptionCardView

Objective-C

@interface BTUIKPaymentOptionCardView : UIView

Swift

class BTUIKPaymentOptionCardView : UIView

@class A UIView containing the BTUIKVectorArtView for a BTUIKPaymentOptionType within a light border.

  • The BTUIKPaymentOptionType to display

    Declaration

    Objective-C

    @property (nonatomic) BTUIKPaymentOptionType paymentOptionType;

    Swift

    var paymentOptionType: BTUIKPaymentOptionType { get set }
  • Defaults to 4.0

    Declaration

    Objective-C

    @property (nonatomic) float cornerRadius;

    Swift

    var cornerRadius: Float { get set }
  • Inner padding between art and border. Defaults to 3

    Declaration

    Objective-C

    @property (nonatomic) float innerPadding;

    Swift

    var innerPadding: Float { get set }
  • Stroke width around card border. Defaults to 1

    Declaration

    Objective-C

    @property (nonatomic) float borderWidth;

    Swift

    var borderWidth: Float { get set }
  • Stroke color around card border. Defaults to #C8C7CC

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *borderColor;

    Swift

    var borderColor: UIColor! { get set }
  • Vector art size, defaults to Regular

    Declaration

    Objective-C

    @property (nonatomic) BTUIKVectorArtSize vectorArtSize;

    Swift

    var vectorArtSize: BTUIKVectorArtSize { get set }
  • Set the highlighted state of the view.

    Declaration

    Objective-C

    - (void)setHighlighted:(BOOL)highlighted;

    Swift

    func setHighlighted(_ highlighted: Bool)

    Parameters

    highlighted

    When true, change the border color to the tint color. Otherwise light gray.

  • Use the art dimensions to ensure that the width/height ratio is appropriate.

    Declaration

    Objective-C

    - (CGSize)getArtDimensions;

    Swift

    func getArtDimensions() -> CGSize

    Return Value

    A CGSize. Usually CGSizeMake(87.0f, 55.0f)