finds.dev

orazz/CreditCardForm-iOS

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

View on GitHub

★ 1,465SwiftMITupdated May 2020

// the take

A UIView subclass that renders an animated credit card UI synced to Stripe's STPPaymentCardTextField. You get the card flip animation, network logo swap, and CVC highlight as the user types. It's for iOS apps that want a polished payment form without building the visual layer themselves.

Hard dependency on Stripe is actually a feature here — it delegates all input validation and PCI-scope handling to Stripe's own text field, so this library stays purely presentational. The card brand detection and logo swap happens automatically as digits are entered. Per-brand gradient color customization via a simple dictionary is a clean API. Two demo projects (standalone and library) make it straightforward to see exactly how to wire it up.

Dead since May 2020 — last commit was six years ago, Swift 4.2, Xcode 8 minimum. Stripe's SDK has had multiple major breaking versions since then and the delegate method names in the README (`paymentCardTextFieldDidChange`) no longer match the current Stripe API. No Swift Package Manager support, only CocoaPods and Carthage, both of which are increasingly unwelcome in new projects. Vendoring AKMaskField and CreditCardValidator directly into the package instead of declaring them as dependencies means you get whatever version was frozen in 2020.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,465
Forks
165
Language
Swift
License
MIT
Last commit
30 May 2020

// nearby

If CreditCardForm-iOS isn't quite it.

All repos →