Class
LeftToSpendViewController
public final class LeftToSpendViewController: UIViewController
A view controller for displaying left to spend details.
Required scopes: statistics:read
, transactions:read
, transactions:categorize
, categories:read
and calendar:read
.
A LeftToSpendViewController
displays an interface for browsing left to spend by month.
Overview
let leftToSpendViewController = LeftToSpendViewController(tink: <#Tink#>)
present(leftToSpendViewController, animated: true)
The LeftToSpendViewController
has a right navigation item that navigates to the transactions list, but it does not manage navigation to the transactions list.
Push the LeftToSpendViewController
into a UINavigationController
to show the transactions navigation item.
Relationships
Conforms To
TransactionsViewControllerDelegate
A set of methods that your delegate object can implement to track when the user selects a transaction, or to track when the loading transactions fails.
UIAdaptivePresentationControllerDelegate
UIViewController
Initializers
init(tink:)
public convenience init(tink: Tink = .shared)
Initializes a new view controller.
Parameters
Name | Type | Description |
---|---|---|
tink | Tink |
A configured |
Properties
shouldShowCurrencySymbolInStatisticsTotal
var shouldShowCurrencySymbolInStatisticsTotal = false
Determines whether a currency symbol should be shown for the total amount in the statistics pie charts.
Methods
viewDidLoad()
override public func viewDidLoad()
transactionsViewController(_:didSelectTransaction:)
public func transactionsViewController(_ viewController: TransactionsViewController, didSelectTransaction transaction: Transaction)
presentationControllerWillDismiss(_:)
public func presentationControllerWillDismiss(_ presentationController: UIPresentationController)