mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
The image was not appearing because the card using a custom image view that was trying to inherit the mask of the card's shape layer. This change removes the custom image view and instead applies custom corner radii to the image view directly. This is not ideal, but is an improvement. Ideally, the card would provide a content view that is clipped to the card's shape. It's not possible to enable clipping on the card itself because this causes the shadow to go away. | Before | After | |:--|:--| |  |  | Part of https://github.com/material-components/material-components-ios/issues/8861