BTThreeDSecureV2ButtonCustomization.m 799 B

123456789101112131415161718192021222324252627282930
  1. #import "BTThreeDSecureV2BaseCustomization_Internal.h"
  2. #if __has_include(<Braintree/BraintreeThreeDSecure.h>)
  3. #import <Braintree/BTThreeDSecureV2ButtonCustomization.h>
  4. #else
  5. #import <BraintreeThreeDSecure/BTThreeDSecureV2ButtonCustomization.h>
  6. #endif
  7. @implementation BTThreeDSecureV2ButtonCustomization
  8. - (instancetype)init {
  9. self = [super init];
  10. if (self) {
  11. self.cardinalValue = [ButtonCustomization new];
  12. }
  13. return self;
  14. }
  15. - (void)setBackgroundColor:(NSString *)backgroundColor {
  16. _backgroundColor = backgroundColor;
  17. ((ButtonCustomization *)self.cardinalValue).backgroundColor = backgroundColor;
  18. }
  19. - (void)setCornerRadius:(int)cornerRadius {
  20. _cornerRadius = cornerRadius;
  21. ((ButtonCustomization *)self.cardinalValue).cornerRadius = cornerRadius;
  22. }
  23. @end