Latest 0.1.3
Homepage https://github.com/tsarikovskiy/ThinCreditCard
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

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.

Latest podspec

{
    "name": "ThinCreditCard",
    "version": "0.1.3",
    "summary": "Simple way to add a credit card.",
    "description": "Simple way to add a credit card. All written from scratch without any dependency.",
    "homepage": "https://github.com/tsarikovskiy/ThinCreditCard",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "tsarikovskiy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tsarikovskiy/ThinCreditCard.git",
        "tag": "0.1.3"
    },
    "social_media_url": "https://twitter.com/s_tsarikovskiy",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "ThinCreditCard/Classes/**/*",
    "resource_bundles": {
        "ThinCreditCard": [
            "ThinCreditCard/Assets/**/*.png"
        ]
    },
    "resources": "ThinCreditCard/Assets/*.xcassets",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "4.0.2"
}

Pin It on Pinterest

Share This