Closed prempratapsingh closed 1 year ago
Patch coverage: 81.63
% and project coverage change: -0.36
:warning:
Comparison is base (
e723365
) 87.71% compared to head (eeb37b4
) 87.36%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Kudos, SonarCloud Quality Gate passed!
Relates: https://tracker.trustedshops.com/browse/MAD-58
Description
Trustylib library now supports dark mode. It adapts to iOS system's color scheme by default and thus uses light or dark color scheme for the widgets based on the active color scheme.
To force light or dark color mode for the library so that it doesn't change based on iOS device color scheme, host applications need to have below key-value pair to your app's Info.plist file
UIUserInterfaceStyle key is Apple's recommended way of sticking to either light or dark mode, thus Trustylib looks for this key in the app's Info.plist file and sets the widgets' color scheme mode based on it's value. If this key isn't found, Trustylib adapts to the iOS system provided dynamic color scheme.