JXSegmentedView icon indicating copy to clipboard operation
JXSegmentedView copied to clipboard

roundCorners 设定左上,右上 弧度,弧度部分背景白色无法更改

Open o1xhack opened this issue 3 years ago • 1 comments

通过以下代码,成功实现了弧度,但是因为我设定的所有界面底色都是黑色,设定完后,弧度空余地方全部为白色。

    segmentedView.roundCorners([.topLeft, .topRight], radius: 22)

最外的 view 和 segmentedView,pagingview 设定 background color 都是黑色。 实现后如下图:

image

o1xhack avatar Mar 01 '21 08:03 o1xhack

可以通过以下代码设置弧度空余地方的背景色

pagingView.mainTableView.backgroundColor = .red

znblyj avatar Apr 23 '23 09:04 znblyj