IBAN Type creates an IBAN out of string (if it is IBAN conform). In case of success provides information as counrty (as ISO3166-1Alpha2) the check sum or just the value as formatted string. If you just need to know wether a string contains a valid IBAN you can use the static method myString**.isIBAN**.
try IBAN(with: "CH10002300A1023502601")
"CH10002300A1023502601".isIBAN
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, add HHIBAN as a dependency by adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/HHuckebein/IBAN", .upToNextMajor(from: "1.0.1"))
]
You can install IBAN by including the following line in your Podfile.
pod 'HHIBAN', '~> 1.0.0'
RABE_IT Services, development@berndrabe.de
IBAN is available under the MIT license. See the LICENSE file for more info.