This is the importer of SwiftBeanCount. It reads files to create transactions. This library does not include any UI, so consumers need to provide a UI for selecting accounts, settings, as well as editing of transactions.
Importervia one of the
newfunctions on the
ImporterFactory, depending on what you want to import.
delegateon the importer.
load()on the importer.
nextTransaction()to retrive transaction after transactions till it returns
nil. It is recommended to allow the user the edit the transactions while doing this, as long as
pricesToImport()from the importer.
There are settings for the date tolerance when detecting duplicate transactions, as well as for the mapping the user saved in step 5) of importing transactions. Your app can allow the user to view and edit these via the
Settings object. Settings are by default stored in
UserDefaults but you can bring your own
SettingsStorage by setting
Each Importer provides a help text. You can access all importers via
ImporterFactory.allImporters. They each expose an
helpText on the class.
The library supports the Swift Package Manger, so simply add a dependency in your
.package(url: "https://github.com/Nef10/SwiftBeanCountImporter.git", .exact("X.Y.Z")),
Note: as per semantic versioning all versions changes < 1.0.0 can be breaking, so please use
.exact for now
|Last commit: 4 days ago|