Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CM-1827] In App Notification Banner Colour Customization #427

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

AbhijeetRanjan308
Copy link
Contributor

@AbhijeetRanjan308 AbhijeetRanjan308 commented May 10, 2024

Summary

  • Added Customisation to update color of in App Banner. Customisation is accessible for Background Color, Title Color, Content Color.

Code

            Kommunicate.defaultConfiguration.inAppBannerColor = UIColor.kmDynamicColor(light: .systemBrown, dark: .systemBlue)
            Kommunicate.defaultConfiguration.inAppBannerTextColor = UIColor.kmDynamicColor(light: .white, dark: .black)
            Kommunicate.defaultConfiguration.inAppBannerContentColor = UIColor.kmDynamicColor(light: .white, dark: .black)
            Kommunicate.defaultConfiguration.inAppBannerRadius = 12
            Kommunicate.defaultConfiguration.inAppBannerShadowRadius = 15
            Kommunicate.defaultConfiguration.inAppBannerShadowOpacity = 0.5
            Kommunicate.defaultConfiguration.inAppBannerShadowColor = UIColor.kmDynamicColor(light: .black, dark: .red)

Images (Before and After Customisation)

Video

Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2024-05-13.at.17.21.51.mp4

@AbhijeetRanjan308 AbhijeetRanjan308 changed the base branch from master to dev May 10, 2024 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants