Latest 0.1.1
Homepage https://github.com/LeandroHub/CBUValidator
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

This library runs on Objective-C and Swift 4 projects.

Installation

CBUValidator is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'CBUValidator'

Usage

Swift

import CBUValidator
.
.
let cbu = "2850590940090418135201"
if cbu.validateCBU() {
    print("Valid!")
} else {
    print("Invalid!")
} 

Objective-C

You’ll probably need to create a swift file so that your project gets ready to run a Swift pod. Also check you target’s Build Settings so that it matches a 4.0 Swift version: open your target’s Build Settings, search for the keyboard ‘swift’ and make any necessary changes.

@import CBUValidator;
.
.
NSString *cbu = @"2850590940090418135201";
if (cbu.validateCBU) {
    NSLog(@"Valid!");
} else {
    NSLog(@"Invalid!");
}

Author

Leandro Fournier, [email protected]

License

CBUValidator is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CBUValidator",
    "version": "0.1.1",
    "summary": "This library validates an Argentinian CBU (Clave Bancaria Uniforme) number.",
    "description": "This library validates an Argentinian CBU (Clave Bancaria Uniforme) number. It checks for the two validator digits using the corresponding algorithm.",
    "homepage": "https://github.com/LeandroHub/CBUValidator",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Leandro Fournier": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LeandroHub/CBUValidator.git",
        "tag": "0.1.1"
    },
    "swift_version": "4.0",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CBUValidator/Classes/**/*"
}

Pin It on Pinterest

Share This