Class
AccountDetailsViewController
public final class AccountDetailsViewController: UIViewController
A view controller that displays balance and transactions for a specific account.
Required scopes: accounts:read
, categories:read
, transactions:read
and transactions:categorize
.
Use the AccountDetailsViewController
when you want to display information and transactions about one of the user's accounts.
When creating the view controller, you specify the ID for which account to display.
let accountDetailsViewController = AccountDetailsViewController(tink: <#Tink#>, accountID: <#Account.ID#>)
show(accountDetailsViewController, sender: <#Any#>)
Relationships
Conforms To
TransactionsViewControllerDelegate
A set of methods that your delegate object can implement to track when the user selects a transaction, or to track when the loading transactions fails.
UIAdaptivePresentationControllerDelegate
UIViewController
Initializers
init(tink:accountID:)
public convenience init(tink: Tink = .shared, accountID: Account.ID)
Initializes a new view controller.
Parameters
Name | Type | Description |
---|---|---|
tink | Tink |
A configured |
accountID | Account.ID |
The id of the account to show. |
init(tink:accountId:)
@available(*, deprecated, renamed: "init(tink:accountID:)") public convenience init(tink: Tink = .shared, accountId: Account.ID)
init?(coder:)
@available(*, unavailable) public required init?(coder aDecoder: NSCoder)
Properties
delegate
var delegate: AccountDetailsViewControllerDelegate?
An object that conforms to the AccountDetailsViewControllerDelegate
protocol.
Methods
viewDidLoad()
override public func viewDidLoad()
viewDidAppear(_:)
override public func viewDidAppear(_ animated: Bool)
transactionsViewController(_:didSelectTransaction:)
public func transactionsViewController(_ viewController: TransactionsViewController, didSelectTransaction transaction: Transaction)
presentationControllerWillDismiss(_:)
public func presentationControllerWillDismiss(_ presentationController: UIPresentationController)