Latest 0.1.3
Homepage https://github.com/abenergie/CodiceFiscale
License MIT
Platforms ios 10.0
Authors

Codice fiscale

Calculating the tax code for ios has never been easier.

Overview

The example can help you better understand how the library works.

Requirements

  • iOS 10.0+
  • Xcode 10

Integration

CocoaPods (iOS 10+)

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

platform :ios, '10.0'
use_frameworks!

target 'MyApp' do
    pod 'CodiceFiscale'
end

Usage

Initialization

import CodiceFiscale
let fiscalCodeManager = FiscalCodeManager()

Or

let fiscalCodeManager = FiscalCodeManager(localAuthorietsFileName: <fileName>, localAuthorietsExtension: <extensionName>)

With this inizialization you can customize the local authorities list.

Basics

Calculate

fiscalCodeManager.calculate(name: <name>, surname: <surname>, gender: <gender>, date: <date>, town: <town>, province: <province>)

These are the fields needed to calculate the fiscal code:

  • Name
  • Cognome
  • Gender
  • Date of Birth
  • Town of Birth
  • Province of Birth

The function return a nullable value that contain the calculated fiscal code.

Retrive information

fiscalCodeManager.retriveInformationFrom(fiscalCode: <fiscalCode>)

The function return a nullable class that contain the all retrieved fields of input fiscal code.

Info

For more info about fiscal code consult the site: Codice fiscale.

Attention!!

When calculating the Fiscal Code it is possible to incur in the homocody, that is in those cases in which two different people find themselves having an identical Fiscal Code, in order not to take risks we advise you to use the online service of the Revenue Agency and verify the code after having calculated it, thanks to this tool you can check the validity of the tax code, thus avoiding unpleasant surprises or making important official documents invalid.

License

SwiftMessages is distributed under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "CodiceFiscale",
    "version": "0.1.3",
    "summary": "Una semplice libreria per iOS scritta in swift che ti permette di calcolare il codice fiscale.",
    "description": "Una semplice libreria per iOS scritta in swift che ti permette di calcolare il codice fiscale. bla bla bla bla",
    "homepage": "https://github.com/abenergie/CodiceFiscale",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "mo3bius": "[email protected]"
    },
    "source": {
        "git": "https://github.com/abenergie/CodiceFiscale.git",
        "tag": "0.1.3"
    },
    "social_media_url": "http://www.abenergie.it",
    "platforms": {
        "ios": "10.0"
    },
    "swift_version": "5.0",
    "source_files": "CodiceFiscale/Classes/**/*",
    "resources": "CodiceFiscale/Assets/*.{json}",
    "resource_bundles": {
        "CodiceFiscale": [
            "CodiceFiscale/Assets/*"
        ]
    }
}

Pin It on Pinterest

Share This