BTUIKPaymentOptionCardView.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. #import <UIKit/UIKit.h>
  2. #import "BTUIKPaymentOptionType.h"
  3. #import "BTUIKViewUtil.h"
  4. /// @class A UIView containing the BTUIKVectorArtView for a BTUIKPaymentOptionType within a light border.
  5. @interface BTUIKPaymentOptionCardView : UIView
  6. /// The BTUIKPaymentOptionType to display
  7. @property (nonatomic) BTUIKPaymentOptionType paymentOptionType;
  8. /// Defaults to 4.0
  9. @property (nonatomic) float cornerRadius;
  10. /// Inner padding between art and border. Defaults to 3
  11. @property (nonatomic) float innerPadding;
  12. /// Stroke width around card border. Defaults to 1
  13. @property (nonatomic) float borderWidth;
  14. /// Stroke color around card border. Defaults to #C8C7CC
  15. @property (nonatomic, strong) UIColor *borderColor;
  16. /// Vector art size, defaults to Regular
  17. @property (nonatomic) BTUIKVectorArtSize vectorArtSize;
  18. /// Set the highlighted state of the view.
  19. ///
  20. /// @param highlighted When true, change the border color to the tint color. Otherwise light gray.
  21. - (void)setHighlighted:(BOOL)highlighted;
  22. /// Use the art dimensions to ensure that the width/height ratio is
  23. /// appropriate.
  24. ///
  25. /// @return A CGSize. Usually CGSizeMake(87.0f, 55.0f)
  26. - (CGSize)getArtDimensions;
  27. @end