Hello!
When I use renderContext.fillRects(with: brush, points: rectsBuffer.itemsArray) rectangles draws correctly
If I use renderContext.drawRoundedRects(with: pen, brush: brush, topRadius: 0, bottomRadius: 0, points: rectsBuffer.itemsArray), rectangle is drawing, but with a strange border
If I use renderContext.drawRoundedRects(with: pen, brush: brush, topRadius: 2, bottomRadius: 2, points: rectsBuffer.itemsArray) with any non zero radius, rectangle is not drawing at all
Is it bug or I use function in wrong way?
- Georgiy Georgiy asked 8 months ago
- last edited 7 months ago
- You must login to post comments
Hello,
Could you please clarify why you’re using drawRoundedRects instead of fillRects in this case? Understanding the goal behind using rounded rects might help us better assist you.
I also recommend taking a look at our Rounded Columns Chart example. It demonstrates how to create column charts with rounded edges, which might be useful for your scenario.
- Sanam Kapadia answered 7 months ago
- You must login to post comments
I need fill round rect with gradient, for example:
- Georgiy Georgiy answered 7 months ago
- last edited 7 months ago
- You must login to post comments
Please login first to submit.

