Provides country codes as defined by ISO3166-1 alpha 2 in swift. Simple helper type to for use in connection with IBAN/BIC check.
"DE".isISO3166_1Alpha2 // Remember that you have to provide an uppercase string
Besides the check isISO3166_1Alpha2 one create an ISO3166-1 Alpha2 enum by
// Init which accepts only lower case strings.
ISO3166_1Alpha2(rawValue: "YourLowerCaseString")
// Any case string. This should be your default initializer.
ISO3166_1Alpha2(value: "AnyCaseString")
// A country name as specified for the type
ISO3166_1Alpha2(countryName: "Country Name")
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate ISO3661-1 Alpha 2 into your Xcode project using Carthage, specify it in your Cartfile
:
github "HHuckebein/ISO3166-1-Alpha2"
Run carthage
to build the framework and drag the built ISO3166_1Alpha2.framework
into your Xcode project.
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/ISO3166-1Alpha2", .upToNextMajor(from: "1.0.2"))
]
You can install ISO3166-1-Alpha2 by including the following line in your Podfile.
pod 'ISO3166_1Alpha2', '~> 1.0.0'
RABE_IT Services, development@berndrabe.de
ISO3166-1-alpha2 is available under the MIT license. See the LICENSE file for more info.