Customization guide

The Gini Health SDK components can be customized either through the GiniHealthConfiguration, the Localizable.string file or through the assets. Here you can find a complete guide with the reference to every customizable item.

Overview of the UI customization options

Colors

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 create an Accent01.colorset with your wished value in your main bundle. The custom colors are then applied to all screens.

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

Images

Customizing of images is done via overriding of image sets. If you want to override specific SDK images:

  1. Create an asset catalog for images called GiniImages.xcassets in your app.
  2. Add your own images to GiniImages.xcassets using the image names from the SDK’s UI customization guide. It is important to name the images you wish to override exactly as shown in the UI customization guide, otherwise overriding won’t work.

Typography

We provide global typography based on text appearance styles from UIFont.TextStyle. Preview our typography and find the names of the style resources (you can also view it in Figma here).

In the example below you can see to override a font for .body1

let configuration = GiniHealthConfiguration()

configuration.updateFont(UIFont(name: "Impact", size: 15)!, for: .body1)     
health.setConfiguration(configuration)

Text

Text customization is done via overriding of string resources. For example you would like to customize pay invoice button label in the Payment Component:

  1. Find a string key for a text that you would like to customize. For the Pay the invoice button label in the Payment Component we use ginihealth.paymentcomponent.payInvoice.label.
  2. Add the string key with a desired value to Localizable.strings in your app.

Supporting dark mode

We support dark mode in our SDK. If you decide to customize the color palette, please ensure that the text colors are also set in contrast to the background colors.

Payment Component

You can also view the UI customisation guide in Figma here.

Note: To copy text from Figma you need to have a Figma account. If you don’t have one, you can create one for free.

Bank Selection Bottom Sheet

You can also view the UI customisation guide in Figma here.

Note: To copy text from Figma you need to have a Figma account. If you don’t have one, you can create one for free.

Payment Feature Info Screen

You can also view the UI customisation guide in Figma here.

Note: To copy text from Figma you need to have a Figma account. If you don’t have one, you can create one for free.

Payment Review screen

You can also view the UI customisation guide in Figma here.

Note: To copy text from Figma you need to have a Figma account. If you don’t have one, you can create one for free.

Note:

  • PaymentReviewViewController contains the following configuration options:
  • paymentReviewStatusBarStyle: Sets the status bar style on the payment review screen. Only if View controller-based status bar appearance = YES in Info.plist.
  • showPaymentReviewCloseButton: If set to true, a floating close button will be shown in the top right corner of the screen. Default value is false.

For enabling showPaymentReviewCloseButton:

let giniConfiguration = GiniHealthConfiguration()
config.showPaymentReviewCloseButton =  true
healthSDK.setConfiguration(config)