Card Background with custom shape issue

So I’ve been trying to find a solution to a card component that I designed with no luck.
Its a custom shape as the background and whenever I try to apply auto layout it removes the current curves and turns it into a rectangle.

Heres a link:

Anyone have a solution to this?