improve divider
This commit is contained in:
@@ -11,6 +11,9 @@ struct DividerView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
|
Rectangle()
|
||||||
|
.foregroundStyle(block.style.background?.uiColor ?? .clear)
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
if let corner = block.style.corner {
|
if let corner = block.style.corner {
|
||||||
RoundedRectangle(cornerRadius: corner.radius, style: corner.style)
|
RoundedRectangle(cornerRadius: corner.radius, style: corner.style)
|
||||||
@@ -18,10 +21,7 @@ struct DividerView: View {
|
|||||||
Rectangle()
|
Rectangle()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.foregroundStyle(block.style.background?.uiColor ?? .clear)
|
.foregroundStyle(block.style.foreground?.uiColor ?? .clear)
|
||||||
|
|
||||||
Rectangle()
|
|
||||||
.fill(block.style.foreground?.uiColor ?? .clear)
|
|
||||||
.frame(width: width)
|
.frame(width: width)
|
||||||
.padding(.trailing, block.style.padding?.trailing ?? 0)
|
.padding(.trailing, block.style.padding?.trailing ?? 0)
|
||||||
.padding(.leading, block.style.padding?.leading ?? 0)
|
.padding(.leading, block.style.padding?.leading ?? 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user