Structure
AppearanceProvider
public struct AppearanceProvider: AppearanceProviding
A appearance provider that can provide colors, fonts and icons for Tink views.
Relationships
Conforms To
AppearanceProviding
A type that can provide colors, fonts and icons for Tink views.
Initializers
init(colors:fonts:icons:)
public init(colors: ColorProvider? = nil, fonts: FontProvider? = nil, icons: IconProvider? = nil)
init(background:secondaryBackground:groupedBackground:secondaryGroupedBackground:label:secondaryLabel:separator:accent:expenses:income:transfers:uncategorized:warning:expensesIconColor:incomeIconColor:transfersIconColor:uncategorizedIconColor:expensesIconBackgroundColor:incomeIconBackgroundColor:transfersIconBackgroundColor:uncategorizedIconBackgroundColor:lightFont:regularFont:semiBoldFont:boldFont:account:budget:alert:benefits:doubleTransaction:exclude:expensesIcon:financial:food:wellness:home:house:incomeIcon:entertainment:pension:other:refund:salary:savings:search:shopping:tag:transfer:transport:uncategorizedIcon:categoryIconBackgroundCornerRadiusFactor:)
@available(*, deprecated, message: "Use AppearanceProvider(colorProvider:fontProvider:iconProvider:) instead.") 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, lightFont: Font = .systemDefault, regularFont: Font = .systemDefault, semiBoldFont: Font = .systemDefault, boldFont: Font = .systemDefault, account: UIImage, budget: UIImage, alert: UIImage, benefits: UIImage, doubleTransaction: UIImage, exclude: UIImage, expensesIcon: UIImage, financial: UIImage, food: UIImage, wellness: UIImage, home: UIImage, house: UIImage, incomeIcon: UIImage, entertainment: UIImage, pension: UIImage, other: UIImage, refund: UIImage, salary: UIImage, savings: UIImage, search: UIImage, shopping: UIImage, tag: UIImage, transfer: UIImage, transport: UIImage, uncategorizedIcon: UIImage, categoryIconBackgroundCornerRadiusFactor: CGFloat? = nil)
Initializes a appearance provider with the specified styling.
-
income Icon representing income for all categries.
Parameters
Name | Type | Description |
---|---|---|
background | UIColor |
Color for the main background of the interface. |
secondaryBackground | UIColor |
Color for content layered on top of the main background. |
groupedBackground | UIColor |
Color for the main background of grouped interface components. |
secondaryGroupedBackground | UIColor |
Color for content layered on top of the main background of grouped interface components. |
label | UIColor |
Primary text color. |
secondaryLabel | 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. |
expensesIconColor | UIColor? |
Color to represent expenses icon, defaults to |
incomeIconColor | UIColor? |
Color to represent incomes, defaults to |
transfersIconColor | UIColor? |
Color to represent transfers, defaults to |
uncategorizedIconColor | UIColor? |
Color representing uncategorized transactions, defaults to |
expensesIconBackgroundColor | UIColor? |
Color to represent expenses, defaults to |
incomeIconBackgroundColor | UIColor? |
Color to represent incomes, defaults to |
transfersIconBackgroundColor | UIColor? |
Color to represent transfers, defaults to |
uncategorizedIconBackgroundColor | UIColor? |
Color representing uncategorized transactions, defaults to |
lightFont | Font |
The light font to use. |
regularFont | Font |
The regular font to use. |
semiBoldFont | Font |
The semibold font to use. |
boldFont | Font |
The bold font to use. |
benefits | UIImage |
Icon representing benefits. |
exclude | UIImage |
Icon representing excluded transactions. |
expenses | UIColor |
Icon representing expenses for all categories. |
food | UIImage |
Icon representing food and drinks transactions. |
wellness | UIImage |
Icon representing health and beauty transactions. |
home | UIImage |
Icon representing household transactions. |
house | UIImage |
Icon representing home and garden transactions. |
entertainment | UIImage |
Icon representing free time and leisure transactions. |
other | UIImage |
Icon representing other transactions. |
refund | UIImage |
Icon representing refunds and reimbursements. |
salary | UIImage |
Icon representing salary. |
savings | UIImage |
Icon representing savings. |
shopping | UIImage |
Icon representing shopping transactions. |
transfer | UIImage |
Icon representing transfers. |
transport | UIImage |
Icon representing transportation transactions. |
uncategorizedIcon | UIImage |
Icon representing uncategorized transactions. |
categoryIconBackgroundCornerRadiusFactor | CGFloat? |
Representing the corner radius factor of all icons, defaults to a circular shape. |
init(accent:expenses:income:transfers:uncategorized:warning:expensesIconColor:incomeIconColor:transfersIconColor:uncategorizedIconColor:expensesIconBackgroundColor:incomeIconBackgroundColor:transfersIconBackgroundColor:uncategorizedIconBackgroundColor:lightFont:regularFont:semiBoldFont:boldFont:categoryIconBackgroundCornerRadiusFactor:)
@available(*, deprecated, message: "Use AppearanceProvider(colorProvider:fontProvider:iconProvider:) instead.") public init(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, lightFont: Font = .systemDefault, regularFont: Font = .systemDefault, semiBoldFont: Font = .systemDefault, boldFont: Font = .systemDefault, categoryIconBackgroundCornerRadiusFactor: CGFloat? = nil)
Initializes a appearance provider with the specified styling and system default colors for backgrounds, labels, and separator.
Parameters
Name | Type | Description |
---|---|---|
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. |
expensesIconColor | UIColor? |
Color to represent expenses icon, defaults to |
incomeIconColor | UIColor? |
Color to represent incomes, defaults to |
transfersIconColor | UIColor? |
Color to represent transfers, defaults to |
uncategorizedIconColor | UIColor? |
Color representing uncategorized transactions, defaults to |
expensesIconBackgroundColor | UIColor? |
Color to represent expenses, defaults to |
incomeIconBackgroundColor | UIColor? |
Color to represent incomes, defaults to |
transfersIconBackgroundColor | UIColor? |
Color to represent transfers, defaults to |
uncategorizedIconBackgroundColor | UIColor? |
Color representing uncategorized transactions, defaults to |
lightFont | Font |
The light font to use. |
regularFont | Font |
The regular font to use. |
semiBoldFont | Font |
The semibold font to use. |
boldFont | Font |
The bold font to use. |
categoryIconBackgroundCornerRadiusFactor | CGFloat? |
Representing the corner radius factor of all icons, defaults to a circular shape. |
init(background:secondaryBackground:groupedBackground:secondaryGroupedBackground:label:secondaryLabel:separator:accent:expenses:income:transfers:uncategorized:expensesIconColor:incomeIconColor:transfersIconColor:uncategorizedIconColor:expensesIconBackgroundColor:incomeIconBackgroundColor:transfersIconBackgroundColor:uncategorizedIconBackgroundColor:lightFont:regularFont:semiBoldFont:boldFont:categoryIconBackgroundCornerRadiusFactor:)
@available(*, deprecated, message: "Use AppearanceProvider(colorProvider:fontProvider:iconProvider:) instead.") 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, expensesIconColor: UIColor? = nil, incomeIconColor: UIColor? = nil, transfersIconColor: UIColor? = nil, uncategorizedIconColor: UIColor? = nil, expensesIconBackgroundColor: UIColor? = nil, incomeIconBackgroundColor: UIColor? = nil, transfersIconBackgroundColor: UIColor? = nil, uncategorizedIconBackgroundColor: UIColor? = nil, lightFont: Font = .systemDefault, regularFont: Font = .systemDefault, semiBoldFont: Font = .systemDefault, boldFont: Font = .systemDefault, categoryIconBackgroundCornerRadiusFactor: CGFloat? = nil)
Initializes a appearance provider with the specified styling.
Parameters
Name | Type | Description |
---|---|---|
background | UIColor |
Color for the main background of the interface. |
secondaryBackground | UIColor |
Color for content layered on top of the main background. |
groupedBackground | UIColor |
Color for the main background of grouped interface components. |
secondaryGroupedBackground | UIColor |
Color for content layered on top of the main background of grouped interface components. |
label | UIColor |
Primary text color. |
secondaryLabel | 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 | Color representing a warning. |
|
expensesIconColor | UIColor? |
Color to represent expenses icon, defaults to |
incomeIconColor | UIColor? |
Color to represent incomes, defaults to |
transfersIconColor | UIColor? |
Color to represent transfers, defaults to |
uncategorizedIconColor | UIColor? |
Color representing uncategorized transactions, defaults to |
expensesIconBackgroundColor | UIColor? |
Color to represent expenses, defaults to |
incomeIconBackgroundColor | UIColor? |
Color to represent incomes, defaults to |
transfersIconBackgroundColor | UIColor? |
Color to represent transfers, defaults to |
uncategorizedIconBackgroundColor | UIColor? |
Color representing uncategorized transactions, defaults to |
lightFont | Font |
The light font to use. |
regularFont | Font |
The regular font to use. |
semiBoldFont | Font |
The semibold font to use. |
boldFont | Font |
The bold font to use. |
categoryIconBackgroundCornerRadiusFactor | CGFloat? |
Representing the corner radius factor of all icons, defaults to a circular shape. |
init(background:secondaryBackground:label:secondaryLabel:separator:accent:expense:income:transfer:uncategorized:lightFont:regularFont:semiBoldFont:boldFont:)
@available(*, deprecated, message: "Use AppearanceProvider(colorProvider:fontProvider:iconProvider:) instead.") public init(background: UIColor, secondaryBackground: UIColor, label: UIColor, secondaryLabel: UIColor, separator: UIColor, accent: UIColor, expense: UIColor, income: UIColor, transfer: UIColor, uncategorized: UIColor, lightFont: Font = .systemDefault, regularFont: Font = .systemDefault, semiBoldFont: Font = .systemDefault, boldFont: Font = .systemDefault)
init(background:secondaryBackground:groupedBackground:secondaryGroupedBackground:label:secondaryLabel:separator:accent:expenses:income:transfers:uncategorized:lightFont:regularFont:semiBoldFont:boldFont:)
@available(*, deprecated, message: "Use AppearanceProvider(colorProvider:fontProvider:iconProvider:) instead.") 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, lightFont: Font = .systemDefault, regularFont: Font = .systemDefault, semiBoldFont: Font = .systemDefault, boldFont: Font = .systemDefault)
Initializes a appearance provider with the specified styling.
Parameters
Name | Type | Description |
---|---|---|
background | UIColor |
Color for the main background of the interface. |
secondaryBackground | UIColor |
Color for content layered on top of the main background. |
label | UIColor |
Primary text color. |
secondaryLabel | 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. |
lightFont | Font |
The light font to use. |
regularFont | Font |
The regular font to use. |
semiBoldFont | Font |
The semibold font to use. |
boldFont | Font |
The bold font to use. |
Properties
colors
var colors: ColorProviding
icons
var icons: IconProviding
fonts
var fonts: FontProviding
colorProviding
var colorProviding: ColorProviding
iconProviding
var iconProviding: IconProviding
fontProviding
var fontProviding: FontProviding