-
Notifications
You must be signed in to change notification settings - Fork 199
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
[iOS] Replace the grid/list switching icon #535
[iOS] Replace the grid/list switching icon #535
Conversation
Image(switchModeIcon) | ||
.foregroundStyle(AssetColors.Surface.onSurface.swiftUIColor) | ||
.frame(width: 40, height: 40) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem has not occurred because the original image color is onSurface, but I would expect that the color would not be changed unless the template is originally specified in the renderingMode modifier.
Image(switchModeIcon) | |
.foregroundStyle(AssetColors.Surface.onSurface.swiftUIColor) | |
.frame(width: 40, height: 40) | |
Image(switchModeIcon) | |
.renderingMode(.template) | |
.foregroundStyle(AssetColors.Surface.onSurface.swiftUIColor) | |
.frame(width: 40, height: 40) |
I think it would be safer to add this one.
Alternatively, you can also set template-rendering-intent to imageset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! Thank you!
Issue
Overview (Required)
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)
Movie (Optional)