add support for corner radius in dividers
This commit is contained in:
@@ -11,8 +11,14 @@ struct DividerView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
Rectangle()
|
Group {
|
||||||
.fill(block.style.background?.uiColor ?? .clear)
|
if let corner = block.style.corner {
|
||||||
|
RoundedRectangle(cornerRadius: corner.radius, style: corner.style)
|
||||||
|
} else {
|
||||||
|
Rectangle()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.foregroundStyle(block.style.background?.uiColor ?? .clear)
|
||||||
|
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.fill(block.style.foreground?.uiColor ?? .clear)
|
.fill(block.style.foreground?.uiColor ?? .clear)
|
||||||
|
|||||||
Reference in New Issue
Block a user