From 39457d8faf17270d27465fa5a9fad2c0fe40e565 Mon Sep 17 00:00:00 2001 From: Tommaso Negri Date: Sun, 12 Jul 2026 21:31:09 +0200 Subject: [PATCH] add support for corner radius in dividers --- Sources/phbar/Views/DividerView.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)