Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Properties
hiddentrue

Status

Status
colourGreen
titleapproved

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
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

...

We provide a global color palette GiniColors.xcassets which you are free to override. Custom colors are applied to all screens. You can find Find the names of the colors in GiniColors.xcassets.

You can view our color palette here:

Figma for confluence lite
nodeUrlhttps://www.figma.com/file/z2naLjqFknlrlbHhfAWx85/iOS-Gini-Bank-SDK-3.1.2-UI-Customisation?type=design&node-id=14-355&mode=design&t=uSCeXLg4PIKNHwKR-4
height1000px

...

Code Block
languageswift
    // If you need to scale your font please, use our method `scaledFont()`. Please, findFind 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)

...

Text customization is done via overriding of string resources. If you plan to use a custom name for localizable strings, you need to set it in GiniBankConfiguration.localizedStringsTableName.

You can find Find all the string resources in Localizable.strings.