TinkMoneyManagerUI Documentation Beta

Class Transaction​Details​View​Controller

public final class TransactionDetailsViewController: UIViewController

A view controller that displays details about a specific transaction.

Use the TransactionDetailsViewController when you want to display information about a particular transaction. From this view controller, the user can also categorize or edit the transaction.

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

let transactionDetailsViewController = TransactionDetailsViewController(transactionID: <#T##Transaction.ID#>)
show(transactionDetailsViewController, sender: <#Any#>)
  • categories:read

  • transactions:read

  • transactions:write

  • transactions:categorize.

TransactionDetailsViewController TransactionDetailsViewController UIViewController UIViewController TransactionDetailsViewController->UIViewController UITableViewDataSource UITableViewDataSource TransactionDetailsViewController->UITableViewDataSource TransactionEditViewControllerDelegate TransactionEditViewControllerDelegate TransactionDetailsViewController->TransactionEditViewControllerDelegate UITableViewDelegate UITableViewDelegate TransactionDetailsViewController->UITableViewDelegate UIAdaptivePresentationControllerDelegate UIAdaptivePresentationControllerDelegate TransactionDetailsViewController->UIAdaptivePresentationControllerDelegate

Conforms To

TransactionEditViewControllerDelegate

A set of methods that your delegate object can implement to track when the user cancel the edit transaction, or to track when the edit transaction succeeded.

UIAdaptivePresentationControllerDelegate
UITableViewDataSource
UITableViewDelegate
UIViewController

Initializers

init(tink:​transaction​ID:​)

public init(tink: Tink = .shared, transactionID: Transaction.ID)

Initializes a new TransactionDetailsViewController.

Parameters

tink Tink

A configured Tink instance. Defaults to shared if not specified.

transaction​ID Transaction.​ID

The transaction ID to display.

Methods

load​View()

override public func loadView()

view​Did​Load()

override public func viewDidLoad()

view​Did​Layout​Subviews()

override public func viewDidLayoutSubviews()

view​Did​Appear(_:​)

override public func viewDidAppear(_ animated: Bool)

table​View(_:​number​OfRows​InSection:​)

public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int

table​View(_:​cell​For​Row​At:​)

public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell

table​View(_:​did​Select​Row​At:​)

public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)

scroll​View​Did​Scroll(_:​)

public func scrollViewDidScroll(_ scrollView: UIScrollView)

presentation​Controller​Will​Dismiss(_:​)

public func presentationControllerWillDismiss(_ presentationController: UIPresentationController)

transaction​Edit​View​Controller​Did​Cancel(_:​)

public func transactionEditViewControllerDidCancel(_ viewController: TransactionEditViewController)

transaction​Edit​View​Controller​Did​Edit​Successfully(_:​transaction:​)

public func transactionEditViewControllerDidEditSuccessfully(_ viewController: TransactionEditViewController, transaction: Transaction)