finds.dev← search

// the find

orazz/CreditCardForm-iOS

★ 1,465 · Swift · MIT · updated May 2020

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

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.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →