Fix cornerMasking on card view when no shadow is set
This commit is contained in:
@@ -23,7 +23,7 @@ public struct CardView<Content: View>: View, ChartBase {
|
||||
VStack {
|
||||
self.content()
|
||||
}
|
||||
.clipShape(RoundedRectangle(cornerRadius: 20))
|
||||
.clipShape(RoundedRectangle(cornerRadius: showShadow ? 20 : 0))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user