barbarity / CreditCardFormatter

A library for validating and formatting credit cards written in Swift
MIT License
7 stars 2 forks source link

CreditCardFormatter

A library for validating and formatting credit cards written in Swift.

Features

Requirements

Installation

CocoaPods

You can use CocoaPods to install CreditCardFormatter by adding it to your Podfile:

pod 'CreditCardFormatter', '~> 0.1.0'

Carthage

Create a Cartfile that lists the framework and run carthage update. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/CreditCardFormatter.framework into your Xcode project.

github "barbarity/CreditCardFormatter", "0.1.0"

Swift Package Manager

Set up your Package.swift and add CreditCardFormatter to the dependencies value.

dependencies: [
    .package(url: "https://github.com/barbarity/CreditCardFormatter.git", from: "0.1.0")
]

Manually

TBD

Usage

TBD

Contribute

License

CreditCardFormatter is released under the MIT License. See LICENSE for details.