Class
TransactionDetailsViewController
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
.
Relationships
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:transactionID:)
public init(tink: Tink = .shared, transactionID: Transaction.ID)
Initializes a new TransactionDetailsViewController
.
Parameters
Name | Type | Description |
---|---|---|
tink | Tink |
A configured |
transactionID | Transaction.ID |
The transaction ID to display. |
Methods
loadView()
override public func loadView()
viewDidLoad()
override public func viewDidLoad()
viewDidLayoutSubviews()
override public func viewDidLayoutSubviews()
viewDidAppear(_:)
override public func viewDidAppear(_ animated: Bool)
tableView(_:numberOfRowsInSection:)
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
tableView(_:cellForRowAt:)
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
tableView(_:didSelectRowAt:)
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
scrollViewDidScroll(_:)
public func scrollViewDidScroll(_ scrollView: UIScrollView)
presentationControllerWillDismiss(_:)
public func presentationControllerWillDismiss(_ presentationController: UIPresentationController)
transactionEditViewControllerDidCancel(_:)
public func transactionEditViewControllerDidCancel(_ viewController: TransactionEditViewController)
transactionEditViewControllerDidEditSuccessfully(_:transaction:)
public func transactionEditViewControllerDidEditSuccessfully(_ viewController: TransactionEditViewController, transaction: Transaction)