pujiaxin33 / JXSegmentedView

A powerful and easy to use segmented view (segmentedcontrol, pagingview, pagerview, pagecontrol, categoryview) (腾讯新闻、今日头条、QQ音乐、网易云音乐、京东、爱奇艺、腾讯视频、淘宝、天猫、简书、微博等所有主流APP分类切换滚动视图)
MIT License
2.69k stars 370 forks source link

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

Closed o1xhack closed 2 months ago

o1xhack commented 3 years ago

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

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

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

image

znblyj commented 1 year ago

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

pagingView.mainTableView.backgroundColor = .red