How can I clip a shadow on a view that has transparent background using SwiftUI?
What I want to achieve is to have the possibility of getting the shadow clipped outside of the RoundedRectangle and not displaying shadow inside of it. (you can see that - "Text" has some black background, which is the shadow)
What I try to achieve: (done this using CSS) - the background inside have transparency 
My Result:
Text("Text") .multilineTextAlignment(.leading) .padding(EdgeInsets(top: 8, leading: 14, bottom: 8, trailing: 14)) .font(.system(size: 13, weight: .medium, design: .default)) .overlay(RoundedRectangle(cornerRadius: 10, style: .continuous) .fill(Color.init(Color.RGBColorSpace.sRGB, white: 1, opacity: 0.2)) .shadow(color: Color.black, radius: 6, x: 0, y: 3)).padding(30) 

