Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We provide a global color palette GiniColors.xcassets which you are free to override. For example, if you want to override Accent01 color you need to

We offer several methods for overriding colors:

  1. Using your main bundle. To override a color such as Accent01 color, simply create an Accent01.colorset with your wished value in your main bundle

...

  1. .

  2. Using a custom bundle

...

  1. . Set customResourceBundle in GiniBankConfiguration

...

  1. to use a custom bundle. Then, create an Accent01.colorset file with your desired value in the custom bundle to override the Accent01 color.

  2. Using customResourceProvider. This method enables the customization of resources to override the default Gini colors, impacting all screens. To implement this, set customResourceProvider in GiniBankConfiguration.

Info

To ensure proper customization, set customResourceProvider before configuring any custom Gini button configurations, such as primaryButtonConfiguration, secondaryButtonConfiguration, transparentButtonConfiguration, cameraControlButtonConfiguration, and addPageButtonConfiguration.

Find the names of the color resources in the color palette (you can also view it in Figma here):

Figma for confluence lite
nodeUrlhttps://www.figma.com/file/kUde2EyjO88UVprdSwn2limikn8kCBGSIil4DhDg7NNL/iOS-Gini-Bank-SDK-3.7.08-UI-Customisation?type=design&node-id=142574-35512863&mode=design&t=PD89VMxALhhBui6sYqSLW87DJ3ZgncJe-4
height1000px

...

Images

Customizing of images is done via overriding of drawable resources.

...

Preview our typography and find the names of the style resources (you can also view it in Figma here):

Figma for confluence lite
nodeUrlhttps://www.figma.com/file/kUde2EyjO88UVprdSwn2limikn8kCBGSIil4DhDg7NNL/iOS-Gini-Bank-SDK-3.7.08-UI-Customisation?type=design&node-id=2574-12863&mode=design&t=Xpr08uvZ81ZVAzGVYqSLW87DJ3ZgncJe-4
height1000px

To override them in your application, use GiniBankConfiguration.updateFont(_ font: UIFont, for textStyle: UIFont.TextStyle), for example:

...