orazz / CreditCardForm-iOS

CreditCardForm is iOS framework that allows developers to create the UI which replicates an actual Credit Card.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing card colors manually

hamzabinamin opened this issue · comments

Let's say I save a saved card that I know is of Visa or Mastercard brand. I can fetch the numeral data and show it in the card form but the card color doesn't change at all. It remains black.

I have tried the following:

creditCardForm.colors[Brands.MasterCard.rawValue] = [hexStr(hexStr: "#ED495A", alpha: 1), hexStr(hexStr: "#8B1A2B", alpha: 1)]

Is there a way to set the brand color and show the brand image (visa, mastercard etc) manually?

commented

Update to 0.2.0 version
creditCardForm.cardGradientColors[Brands.Visa.rawValue] = [UIColor.blue, UIColor.red]