Skip to content

Commit

Permalink
Merge pull request #682 from shtolik/fix-color-resource-ios
Browse files Browse the repository at this point in the history
Fix color resource ios
  • Loading branch information
Alex009 authored Apr 26, 2024
2 parents b5eef7f + 64fc39f commit d1afd65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ actual fun colorResource(resource: ColorResource): Color {
// TODO https://github.com/icerockdev/moko-resources/issues/443
// recompose when appearance changed (now not works in runtime!)
val darkMode: Boolean = isSystemInDarkTheme()
return remember(darkMode) {
return remember(resource, darkMode) {
val uiColor: UIColor = resource.getUIColor()

memScoped {
Expand Down

0 comments on commit d1afd65

Please sign in to comment.