Fix cornerMasking on card view when no shadow is set

This commit is contained in:
Andras Samu
2020-07-29 18:49:57 +02:00
parent 3265d3e16b
commit 7fb2a0013c
@@ -23,7 +23,7 @@ public struct CardView<Content: View>: View, ChartBase {
VStack {
self.content()
}
.clipShape(RoundedRectangle(cornerRadius: 20))
.clipShape(RoundedRectangle(cornerRadius: showShadow ? 20 : 0))
}
}
}