Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.66 KB

README.md

File metadata and controls

61 lines (44 loc) · 1.66 KB

EurekaCreditCard

Version License Platform

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

  • Swift 3 version
  • SwiftValidator integration?

Author

Demetrio Filocamo, [email protected]

License

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