-
A Storage which saves the settings
Default value is
UserDefaults.standardDeclaration
Swift
public static var storage: SettingsStorage -
Mappings of descriptions the user saved when importing previous transactions
These are automatically applied when importing and are only exported to allow apps to offer a settings screen to view and modify them.
Keys are the original descriptions from the importer and the value are the new descriptions the user mapped them to
Declaration
Swift
public static var allDescriptionMappings: [String : String] { get } -
Mappings of payees the user saved when importing previous transactions
These are automatically applied when importing and are only exported to allow apps to offer a settings screen to view and modify them.
Keys are the original descriptions from the importer and the values are the new payees the user mapped them to
Declaration
Swift
public static var allPayeeMappings: [String : String] { get } -
Mappings of accounts the user saved when importing previous transactions
These are automatically applied when importing and are only exported to allow apps to offer a settings screen to view and modify them.
Keys are payees and the values are account name strings the user mapped them to
Declaration
Swift
public static var allAccountMappings: [String : String] { get } -
See also
dateToleranceInDayswhich offers this value as IntDeclaration
Swift
public static var dateTolerance: TimeInterval { get } -
Date tolerance in days to check for duplicate transactions when importing
See also
dateTolerancewhich offers this value asTimeIntervalDeclaration
Swift
public static var dateToleranceInDays: Int { get set } -
Save a new mapping of a description the user wants to automatically apply to new transactions
Note: Do not use this function to save the mapping for an imported transaction (use the functions on
ImportedTransactioninstead), but only for adjustments made on a settings screen.Declaration
Swift
public static func setDescriptionMapping(key: String, description: String?)Parameters
keyoriginal description of the imported transaction
descriptionnew description - Use nil to delete a mapping.
-
Save a new mapping of a payee the user wants to automatically apply to new transactions with a certain description
Note: Do not use this function to save the mapping for an imported transaction (use the functions on
ImportedTransactioninstead), but only for adjustments made on a settings screen.Declaration
Swift
public static func setPayeeMapping(key: String, payee: String?)Parameters
keyoriginal description of an imported transaction
payeepayee to map transactions with this description to. Use nil to delete a mapping.
-
Save a new mapping of an account the user wants to automatically apply to new transactions from a certain payee
Note: Do not use this function to save the mapping for an imported transaction (use the functions on
ImportedTransactioninstead), but only for adjustments made on a settings screen.Declaration
Swift
public static func setAccountMapping(key: String, account: String?)Parameters
keypayee
accountaccount name string - Use nil to delete a mapping
View on GitHub
Install in Dash