Protocol
TransactionEditViewControllerDelegate
public protocol TransactionEditViewControllerDelegate: AnyObject
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.
Relationships
Conforms To
AnyObject
Types Conforming to TransactionEditViewControllerDelegate
TransactionDetailsViewController
A view controller that displays details about a specific transaction.
Requirements
transactionEditViewControllerDidCancel(_:)
func transactionEditViewControllerDidCancel(_ viewController: TransactionEditViewController)
Tells the delegate that the user canceled edit transaction.
Parameters
Name | Type | Description |
---|---|---|
viewController | TransactionEditViewController |
The view controller that called this method. |
transactionEditViewControllerDidEditSuccessfully(_:transaction:)
func transactionEditViewControllerDidEditSuccessfully(_ viewController: TransactionEditViewController, transaction: Transaction)
Tells the delegate that the edit transactions succeeded.
Parameters
Name | Type | Description |
---|---|---|
viewController | TransactionEditViewController |
The view controller that called this method. |
transaction | Transaction |
The edited transaction. |