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