Compare commits
2 Commits
a963a19bf3
...
87070dd62f
| Author | SHA1 | Date | |
|---|---|---|---|
|
87070dd62f
|
|||
|
39457d8faf
|
@@ -12,10 +12,16 @@ struct DividerView: View {
|
||||
var body: some View {
|
||||
ZStack {
|
||||
Rectangle()
|
||||
.fill(block.style.background?.uiColor ?? .clear)
|
||||
.foregroundStyle(block.style.background?.uiColor ?? .clear)
|
||||
|
||||
Group {
|
||||
if let corner = block.style.corner {
|
||||
RoundedRectangle(cornerRadius: corner.radius, style: corner.style)
|
||||
} else {
|
||||
Rectangle()
|
||||
.fill(block.style.foreground?.uiColor ?? .clear)
|
||||
}
|
||||
}
|
||||
.foregroundStyle(block.style.foreground?.uiColor ?? .clear)
|
||||
.frame(width: width)
|
||||
.padding(.trailing, block.style.padding?.trailing ?? 0)
|
||||
.padding(.leading, block.style.padding?.leading ?? 0)
|
||||
|
||||
Reference in New Issue
Block a user