TinkMoneyManagerUI Documentation Beta

Class Color​Provider

public class ColorProvider: ColorProviding

A type that can provide custom colors for Tink views.

ColorProvider ColorProvider ColorProviding ColorProviding ColorProvider->ColorProviding

Conforms To

ColorProviding

A type that can provide colors for Tink views.

Initializers

init()

public init()

init(background:​secondary​Background:​grouped​Background:​secondary​Grouped​Background:​label:​secondary​Label:​separator:​accent:​expenses:​income:​transfers:​uncategorized:​warning:​expenses​Icon​Color:​income​Icon​Color:​transfers​Icon​Color:​uncategorized​Icon​Color:​expenses​Icon​Background​Color:​income​Icon​Background​Color:​transfers​Icon​Background​Color:​uncategorized​Icon​Background​Color:​)

public init(background: UIColor, secondaryBackground: UIColor, groupedBackground: UIColor, secondaryGroupedBackground: UIColor, label: UIColor, secondaryLabel: UIColor, separator: UIColor, accent: UIColor, expenses: UIColor, income: UIColor, transfers: UIColor, uncategorized: UIColor, warning: UIColor, expensesIconColor: UIColor? = nil, incomeIconColor: UIColor? = nil, transfersIconColor: UIColor? = nil, uncategorizedIconColor: UIColor? = nil, expensesIconBackgroundColor: UIColor? = nil, incomeIconBackgroundColor: UIColor? = nil, transfersIconBackgroundColor: UIColor? = nil, uncategorizedIconBackgroundColor: UIColor? = nil)

Initializes a color provider with the specified styling.

Parameters

background UIColor

Color for the main background of the interface.

secondary​Background UIColor

Color for content layered on top of the main background.

grouped​Background UIColor

Color for the main background of grouped interface components.

secondary​Grouped​Background UIColor

Color for content layered on top of the main background of grouped interface components.

label UIColor

Primary text color.

secondary​Label UIColor

Secondary text color.

separator UIColor

Color for separators.

accent UIColor

Colors for buttons, indicators and other similar elements.

expenses UIColor

Color to represent expenses.

income UIColor

Color to represent incomes.

transfers UIColor

Color to represent transfers.

uncategorized UIColor

Color representing uncategorized transactions.

warning UIColor

Color representing a warning.

expenses​Icon​Color UIColor?

Color to represent expenses icon, defaults to expenses.

income​Icon​Color UIColor?

Color to represent incomes, defaults to income.

transfers​Icon​Color UIColor?

Color to represent transfers, defaults to transfers.

uncategorized​Icon​Color UIColor?

Color representing uncategorized transactions, defaults to uncategorized.

expenses​Icon​Background​Color UIColor?

Color to represent expenses, defaults to expensesIconColor mixed with background.

income​Icon​Background​Color UIColor?

Color to represent incomes, defaults to incomeIconColor mixed with background.

transfers​Icon​Background​Color UIColor?

Color to represent transfers, defaults to transfersIconColor mixed with background.

uncategorized​Icon​Background​Color UIColor?

Color representing uncategorized transactions, defaults to uncategorizedIconColor mixed with background.

Properties

background

var background

Color for the main background of the interface.

secondary​Background

var secondaryBackground

Color for content layered on top of the main background.

label

var label

Primary text color.

secondary​Label

var secondaryLabel

Secondary text color.

separator

var separator

Color for separators.

accent

var accent

Colors for buttons, indicators and other similar elements.

accent​Background

var accentBackground

Colors for background of buttons, indicators and other similar elements.

button

var button

Colors for buttons.

button​Label

var buttonLabel

Color for the primary buttons label.

secondary​Button

var secondaryButton: UIColor?

Color for secondary buttons. Defaults to button color.

secondary​Button​Title

var secondaryButtonTitle: UIColor?

tertiary​Button

var tertiaryButton: UIColor?

Color for smaller buttons. Defaults to button color.

tertiary​Button​Title

var tertiaryButtonTitle: UIColor?

tertiary​Button​Background

var tertiaryButtonBackground: UIColor?

Color for the background of smaller buttons. Defaults to accentBackground color.

chevron​Button

var chevronButton: UIColor?

Color for chevron buttons. Defaults to accent color.

chevron​Button​Disabled

var chevronButtonDisabled: UIColor?

Color for disabled chevron buttons. Defaults to a disabled chevronButton color with 20% alpha.

grouped​Background

var groupedBackground: UIColor?

Color for the main background of grouped interface components.

secondary​Grouped​Background

var secondaryGroupedBackground: UIColor?

Color for content layered on top of the main background of grouped interface components.

expenses

var expenses

Color to represent expenses.

income

var income

Color to represent incomes.

transfers

var transfers

Color to represent transfers.

uncategorized

var uncategorized

Color representing uncategorized transactions.

warning

var warning

Color representing a warning.

critical

var critical

Color representing a critical error.

left​ToSpend

var leftToSpend

Color to represent left to spend.

expenses​Icon​Color

var expensesIconColor: UIColor?

Color representing a expenses icon.

income​Icon​Color

var incomeIconColor: UIColor?

Color representing a income icon.

transfers​Icon​Color

var transfersIconColor: UIColor?

Color representing a tranfers icon.

uncategorized​Icon​Color

var uncategorizedIconColor: UIColor?

Color representing a uncategorized icon.

expenses​Icon​Background​Color

var expensesIconBackgroundColor: UIColor?

Color representing a expenses icon background.

income​Icon​Background​Color

var incomeIconBackgroundColor: UIColor?

Color representing a icnome icon background.

transfers​Icon​Background​Color

var transfersIconBackgroundColor: UIColor?

Color representing a transfer icon background.

uncategorized​Icon​Background​Color

var uncategorizedIconBackgroundColor: UIColor?

Color representing a uncategorized icon background.