add support for corner radius in dividers

This commit is contained in:
2026-07-12 21:31:09 +02:00
parent a963a19bf3
commit 39457d8faf
+7 -1
View File
@@ -11,8 +11,14 @@ struct DividerView: View {
var body: some View {
ZStack {
Group {
if let corner = block.style.corner {
RoundedRectangle(cornerRadius: corner.radius, style: corner.style)
} else {
Rectangle()
.fill(block.style.background?.uiColor ?? .clear)
}
}
.foregroundStyle(block.style.background?.uiColor ?? .clear)
Rectangle()
.fill(block.style.foreground?.uiColor ?? .clear)