TinkMoneyManagerUI Documentation Beta

Class Budget​Details​View​Controller

public final class BudgetDetailsViewController: UIViewController

A view controller that displays details of a budget.

Use the BudgetDetailsViewController when you want to display details and related transactions about a budget.

Required scopes: budgets:write, budgets:read, categories:read, transactions:read, and transactions:categorize

This view controller is designed to be used in a UINavigationController but can be used standalone as well.

When creating the view controller, specify the ID for which budget to display.

let budgetDetailsViewController = BudgetDetailsViewController(budgetID: <#Budget.ID#>)
show(budgetDetailsViewController, sender: <#Any#>)
BudgetDetailsViewController BudgetDetailsViewController UIViewController UIViewController BudgetDetailsViewController->UIViewController EditBudgetViewControllerDelegate EditBudgetViewControllerDelegate BudgetDetailsViewController->EditBudgetViewControllerDelegate

Conforms To

EditBudgetViewControllerDelegate

A set of methods that your delegate object can implement to track when the user edit(update or delete) the budget.

UIViewController

Initializers

init(tink:​budget​ID:​)

public convenience init(tink: Tink = .shared, budgetID: Budget.ID)

Initializes a new view controller.

Parameters

tink Tink

A configured Tink.

budget​ID Budget.​ID

The id of the budget to show.

Properties

delegate

var delegate: BudgetDetailsViewControllerDelegate?

An object that conforms to the BudgetDetailsViewControllerDelegate protocol.

Methods

view​Did​Load()

override public func viewDidLoad()

view​Did​Appear(_:​)

override public func viewDidAppear(_ animated: Bool)

edit​Budget​View​Controller(_:​did​Edit​Budget:​)

public func editBudgetViewController(_ viewController: EditBudgetViewController, didEditBudget budget: Budget)

edit​Budget​View​Controller(_:​did​Delete​Budget:​)

public func editBudgetViewController(_ viewController: EditBudgetViewController, didDeleteBudget budget: Budget)

edit​Budget​View​Controller(_:​did​Fail​With​Error:​)

public func editBudgetViewController(_ viewController: EditBudgetViewController, didFailWithError error: Error)