MFCard is an awesome looking Credit Card input & validation control. Written in Swift 3.
First Step - @import MFCard
to your project
Second Step - Add a delegate MFCardDelegate
to your class & add two delegate methods
Third Step - Present a Card
var myCard : MFCardView
myCard = MFCardView(withViewController: self)
myCard.delegate = self
myCard.autoDismiss = true
myCard.toast = true
myCard.showCard()
Add this to your Podfile.
pod 'MFCard'
- MasterCard
- Visa
- JCB
- Diners
- Discover
- Amex
- Maestro
- UnionPay
- Electron
- Dankort
- RuPay
- Card Image
- Background colour
- Front Chrome colour (Front Card colour)
- Back Chrome colour (Back Card colour)
- Front Chrome Alpha
- Back Chrome Alpha
- Back Card Magnetic Tap colour
- All Label colour
- TextField Customisation
- Control Buttons
- Corner Radius
- Placeholders
- Auto Dismiss
- Flip on Done
- Card Validation Support
- Present Card like alert
- Swipe Gesture To Swipe Card front & back
- Error Handing
- Toast Messages for error handling
- All Properties editable using IBDesignable
Feel free to collaborate with ideas, issues and/or pull requests.
- Provide More Classic card views
- Mutiple Card Collection Viewer
- Stripe Integration
- Language Support (French, Spanish)
- More Animations :-P
- https://github.com/RC7770/CreditCardValidator
- https://github.com/scalessec/Toast-Swift
- Icon Credit : https://thenounproject.com/term/credit-card/490264/
- Arpan & Rahul (http://mobilefirst.in)
- Twitter: @mobilefirstinc
- Email : arpan at mobilefirst.in
MFCard is released under the MIT License.