ThemeConfiguration

@objc(DTThemeConfiguration)
@objcMembers
public class ThemeConfiguration : NSObject

This class gives you options to customize the theme of the library.

The library offers by default a theme for light and dark mode. If your app supports both themes too, make sure to use UIColor.init(dynamicProvider:) when creating custom themes.

We recommend you to start by customizing linkColor before anything else, as this is often used as a fallback color.

  • Background color of the navigation bars. If this is not specified, the navigation bars will be transparent.

    Declaration

    Swift

    public var barBackgroundColor: UIColor?
  • Color of the buttons in the navigation bars. If this is not specified, the color will be the color set in linkColor.

    Declaration

    Swift

    public var barLinkColor: UIColor?
  • Color of the title within the navigation bars. If this is not specified, the color will be the text color.

    The text color is either white or black and cannot be customized.

    Declaration

    Swift

    public var barTitleColor: UIColor?
  • Background color of large buttons, such as the ‘Pay’ button. If this is not specified, the color will be the color set in linkColor.

    Declaration

    Swift

    public var buttonColor: UIColor?
  • Text color of large buttons, such as the ‘Pay’ button. If this is not specified, the color will be set to white.

    Declaration

    Swift

    public var buttonTextColor: UIColor?
  • Color of text-only buttons or links and the text cursor. If this is not specified, the color will be in a blue tone that fits the standard iOS design.

    Declaration

    Swift

    public var linkColor: UIColor?