【第21期】观点:人工智能到底用 GPU?还是用 FPGA?

MFCard:易用的信用卡支付集成类库

转载 2017年01月03日 09:57:38

MFCard is an awesome looking Credit Card input & validation control. Written in Swift 3.

 text

Demo

 text

Usage

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()

CocoaPods Install

Add this to your Podfile.

pod 'MFCard'

Supported Cards

  • MasterCard
  • Visa
  • JCB
  • Diners
  • Discover
  • Amex
  • Maestro
  • UnionPay
  • Electron
  • Dankort

Customisation Options

  • 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

 text

 text

 text

Features

  • 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

Collaboration

Feel free to collaborate with ideas, issues and/or pull requests.

Further Plans

  • Provide More Classic card views
  • Mutiple Card Collection Viewer
  • Stripe Integration
  • Langugage Support (French, Spanish)
  • More Animations :-P

Thanks

Contact

License

MFCard is released under the MIT License.

SwiftiOSGithub

举报

相关文章推荐

[startrelatedarticles]

{relatedtitle}

{relateddes}
[endrelatedarticles] [startrelatedarticlesad1]

{relatedtitle}

{relateddes}
[endrelatedarticlesad1] [startrelatedarticlesad2]
{relateddes}
[endrelatedarticlesad2]
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)