When I add shadow on a view that contains a button then the button will no longer be clickable. The same code on iOS works as expected, but on tvOS it breaks the button. Am I doing something wrong here? Is there a workaround?
Here is my code,
VStack {
Button(action: {
print("Button clicked") // This is never called
}) {
Text("test")
}
.padding()
}
.background(Color.red)
.shadow(color: Color.black, radius: 14, x: 0, y: 4)