A simple currency converter library using the XML data from European Central Bank (ECB). The library has been created and used for Expenses.app. It fetches the latest foreign exchange reference rates and returns the objects in a simple way.
Note that the reference rates are usually updated around 16:00 CET on every working day, except on TARGET closing days. They are based on a regular daily concertation procedure between central banks across Europe, which normally takes place at 14:15 CET. For more info, see the source.
swift package --allow-writing-to-directory ./docs \ generate-documentation --target CurrencyConverter --output-path ./docs \ --transform-for-static-hosting --hosting-base-path currency-converter
swift package --disable-sandbox preview-documentation --product CurrencyConverter
See also apple/swift-docc-plugin for more information.