Page Properties |
---|
|
Status | Status |
---|
colour | YellowGreen |
---|
title | for reviewapproved |
---|
|
|
---|
Approver | Nadzeya Karaban |
---|
|
This page shows how you can customize the user experience and adapt the user interface to suit your preferences.
Table of Contents |
---|
minLevel | 1 |
---|
maxLevel | 6 |
---|
outline | false |
---|
type | list |
---|
printable | false |
---|
|
...
Colors
We are providing provide a global color palette GiniColors.xcassets
which you are free to override. The custom colors will be then applied on Custom colors are applied to all screens. You can find the names of the colors in GiniColors.xcassets.
...
To override them in your application, use GiniBankConfiguration.updateFont(_ font: UIFont, for textStyle: UIFont.TextStyle)
. For , for example:
Code Block |
---|
|
// If you need to scale your font please use our method `scaledFont()`. Please, find the example below.
let configuration = GiniBankConfiguration.shared
let customFontToBeScaled = UIFont.scaledFont(UIFont(name: "Avenir", size: 20) ?? UIFont.systemFont(ofSize: 7, weight: .regular), textStyle: .caption1)
configuration.updateFont(customFontToBeScaled, for: .caption1)
// If you would like to pass us already scaled font.
let customScaledFont = UIFontMetrics(forTextStyle: .caption2).scaledFont(for: UIFont.systemFont(ofSize: 28))
configuration.updateFont(customScaledFont, for: .caption2) |
...