Class
BudgetDetailsViewController
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#>)
Relationships
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
Properties
delegate
var delegate: BudgetDetailsViewControllerDelegate?
An object that conforms to the BudgetDetailsViewControllerDelegate
protocol.
Methods
viewDidLoad()
override public func viewDidLoad()
viewDidAppear(_:)
override public func viewDidAppear(_ animated: Bool)
editBudgetViewController(_:didEditBudget:)
public func editBudgetViewController(_ viewController: EditBudgetViewController, didEditBudget budget: Budget)
editBudgetViewController(_:didDeleteBudget:)
public func editBudgetViewController(_ viewController: EditBudgetViewController, didDeleteBudget budget: Budget)
editBudgetViewController(_:didFailWithError:)
public func editBudgetViewController(_ viewController: EditBudgetViewController, didFailWithError error: Error)