Color | Description |
---|---|
background | This color is used for the back drop in each component across UI Kit |
primary | This color is used for the primary components/actions in components across UI Kit |
error | This color is used for the destructive components/actions in components across UI Kit |
accent | This color is used for the secondary components/actions in components across UI Kit |
accent50 to accent900 | This color is used for the secondary components/actions with a shades of same color manages by the alpha varient(opacity of the color) in components across UI Kit |
Method | Description |
---|---|
set(primary: UIColor) | This method will override the color used for primary color set |
set(background: UIColor) | This method will override the color used for background color set |
set(error: UIColor) | This method will override the color used for error color set |
set(accent: UIColor) | This method will override the color used for accent color set |
window?.overrideUserInterfaceStyle = .dark
Font | Description |
---|---|
LargeHeading | This font takes the size of 34 with a bold weight |
LargeHeading2 | This font takes the size of 22 with a bold weight |
Heading | This font takes the size of 17 with a semibold weight |
Name | This font takes the size of 20 with a medium weight |
Title1 | This font takes the size of 22 with a regular weight |
Title2 | This font takes the size of 17 with a semibold weight |
Subtitle1 | This font takes the size of 15 with a regular weight |
Subtitle2 | This font takes the size of 13 with a regular weight |
Text1 | This font takes the size of 17 with a regular weight |
Text2 | This font takes the size of 15 with a medium weight |
Text3 | This font takes the size of 13 with a semibold weight |
Caption1 | This font takes the size of 13 with a medium weight |
Caption2 | This font takes the size of 11 with a medium weight |
Method | Description |
---|---|
setFont(largeHeading: UIFont) | This method will override the font for largeHeading |
setFont(largeHeading2: UIFont) | This method will override the font for largeHeading2 |
setFont(heading: UIFont) | This method will override the font for heading |
setFont(name: UIFont) | This method will override the font for name |
setFont(name2: UIFont) | This method will override the font for name2 |
setFont(title1: UIFont) | This method will override the font for title1 |
setFont(title2: UIFont) | This method will override the font for title2 |
setFont(subtitle1: UIFont) | This method will override the font for subtitle1 |
setFont(subtitle2: UIFont) | This method will override the font for subtitle2 |
setFont(text1: UIFont) | This method will override the font for text1 |
setFont(text2: UIFont) | This method will override the font for text2 |
setFont(text3: UIFont) | This method will override the font for text3 |
setFont(caption1: UIFont) | This method will override the font for caption1 |
setFont(caption2: UIFont) | This method will override the font for caption2 |
overrideFont(family: CometChatFontFamily) | This method can override the system font with the other font family. |