thi

ThinCreditCard

💳 Simple way to add a credit card

Showing:

Popularity

Downloads/wk

0

GitHub Stars

39

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

ThinCreditCard

CI Status Version License Platform PRs Welcome

Example

class ViewController: UIViewController {

    @IBOutlet weak var cardNumberView: CreditCardValidatorView!

    override func viewDidLoad() {
        super.viewDidLoad()
        cardNumberView.delegate = self
    }
}

extension ViewController: CreditCardValidatorViewDelegate {
    func didEdit(number: String) {
        // Play with card number
    }

    func didEdit(expiryDate: String) {
        // Play with expiry date
    }

    func didEdit(cvc: String) {
        // Play with cvc
    }
}

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

ThinCreditCard is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ThinCreditCard'

License

ThinCreditCard is available under the MIT license. See the LICENSE file for more info.

Questions or feedback?

Feel free to open an issue, or find me @s_tsarikovskiy on Twitter.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100