TinkMoneyManagerUI Documentation Beta

Class Category​Statistics​View​Controller

public final class CategoryStatisticsViewController: UINavigationController

A view controller for displaying statistics for categories. Required scopes: statistics:read, transactions:read, transactions:categorize, categories:read and calendar:read .

A CategoryStatisticsViewController displays an interface for browsing combined sum of categories by month.

Overview

Creating a statistics view requires you to provide which type of categories to display statistics for.

let categoryStatisticsViewController = CategoryStatisticsViewController(tink: <#Tink#>, categoryType: <#Category.Kind#>)
present(categoryStatisticsViewController, animated: true)

The CategoryStatisticsViewController manages it's own UINavigationController for navigating between subcategories and transaction lists. It's designed to be presented modally or in a tab but cannot be pushed into a UINavigationController.

CategoryStatisticsViewController CategoryStatisticsViewController UIGestureRecognizerDelegate UIGestureRecognizerDelegate CategoryStatisticsViewController->UIGestureRecognizerDelegate UINavigationController UINavigationController CategoryStatisticsViewController->UINavigationController

Nested Types

CategoryStatisticsViewController.Style

Conforms To

UIGestureRecognizerDelegate
UINavigationController

Initializers

init(tink:​category​Type:​style:​)

public init(tink: Tink = .shared, categoryType: TinkCore.Category.Kind, style: Style = .pieChart)

Initializes a new view controller.

Parameters

tink Tink

A configured Tink object.

category​Type Tink​Core.​Category.​Kind

The type of categories to display statistics for.

style Style

The type of visualization to use when displaying statistics. Defaults to a pie chart style.

init?(coder:​)

@available(*, unavailable) public required init?(coder: NSCoder)

Properties

category​Type

let categoryType: TinkCore.Category.Kind

The type of categories that the view controller is displaying statistics for.

style

let style: Style

The type of visualization to use when displaying statistics.

should​Show​Currency​Symbol​InStatistics​Total

var shouldShowCurrencySymbolInStatisticsTotal = false

Determines whether a currency symbol should be shown for the total amount in the statistics pie charts.

Methods

view​Did​Load()

override public func viewDidLoad()

gesture​Recognizer​Should​Begin(_:​)

public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool