ContainerRelativeShape() clipping does not work

Hi there,

Trying out these lines of code:

Code Block
Image("some image name")
.clipShape(ContainerRelativeShape())
.padding(3)


This does not clip the image at all, as opposed to what's demo'd in the video...

Any ideas? Thanks!
Can’t confirm that it’s not working using the Xcode 12.0 Beta (12A6159) on macOS Big Sur (20A4299v).
This is an issue in beta1 where using clipShape with ContainerRelativeShape doesn't always work.
In the meantime you can use the mask modifier instead of clipShape as a workaround, and then go back to using clipShape in a future beta.
ContainerRelativeShape() clipping does not work
 
 
Q