| 1234567891011121314151617181920212223242526272829303132 |
- #import <UIKit/UIKit.h>
- #import "BTUIKPaymentOptionType.h"
- #import "BTUIKViewUtil.h"
- /// @class A UIView containing the BTUIKVectorArtView for a BTUIKPaymentOptionType within a light border.
- @interface BTUIKPaymentOptionCardView : UIView
- /// The BTUIKPaymentOptionType to display
- @property (nonatomic) BTUIKPaymentOptionType paymentOptionType;
- /// Defaults to 4.0
- @property (nonatomic) float cornerRadius;
- /// Inner padding between art and border. Defaults to 3
- @property (nonatomic) float innerPadding;
- /// Stroke width around card border. Defaults to 1
- @property (nonatomic) float borderWidth;
- /// Stroke color around card border. Defaults to #C8C7CC
- @property (nonatomic, strong) UIColor *borderColor;
- /// Vector art size, defaults to Regular
- @property (nonatomic) BTUIKVectorArtSize vectorArtSize;
- /// Set the highlighted state of the view.
- ///
- /// @param highlighted When true, change the border color to the tint color. Otherwise light gray.
- - (void)setHighlighted:(BOOL)highlighted;
- /// Use the art dimensions to ensure that the width/height ratio is
- /// appropriate.
- ///
- /// @return A CGSize. Usually CGSizeMake(87.0f, 55.0f)
- - (CGSize)getArtDimensions;
- @end
|