A library for validating and formatting credit cards written in Swift.
You can use CocoaPods to install CreditCardFormatter
by adding it to your Podfile
:
pod 'CreditCardFormatter', '~> 0.1.0'
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"
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")
]
TBD
TBD
CreditCardFormatter is released under the MIT License. See LICENSE for details.