diff --git a/Sources/phbar/Views/DividerView.swift b/Sources/phbar/Views/DividerView.swift index cdd1af1..6323744 100644 --- a/Sources/phbar/Views/DividerView.swift +++ b/Sources/phbar/Views/DividerView.swift @@ -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)