EurekaCreditCard 0.1.3

EurekaCreditCard 0.1.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2016
SPMSupports SPM

Maintained by Demetrio Filocamo.



 
Depends on:
Eureka>= 0
BKMoneyKit>= 0
 


Usage

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

Requirements

Installation

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

pod "EurekaCreditCard"

Code

form +++= Section("Credit card information")

                <<< CreditCardRow() {
            //$0.title = "Card"
            $0.cardNumberPlaceholder = "Card Number"
            $0.expirationMonthPlaceholder = "MM"
            $0.expirationYearPlaceholder = "YY"
            $0.cvcPlaceholder = "CVC"
            //$0.dataSectionWidthPercentage = CGFloat(0.5)
//            $0.value = CreditCard()
            $0.value = CreditCard(
            cardNumber: "1",
                    expirationMonth: "02",
                    expirationYear: "2018",
                    cvc: "4"
            )
        }

Screenshots

Styles

Styles

Selectors for month and year

Selectors for month and year

TODO

  • SwiftValidator integration?

Author

Demetrio Filocamo, [email protected]

License

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