pujiaxin33 / JXSegmentedView

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

在导航栏上设置 JXSegmentedIndicatorLineView 不显示 #170

Open hrscy opened 3 years ago

hrscy commented 3 years ago

默认 indicator.indicatorPosition = .bottom 是显示在底部的,但是在导航栏设置 indicator ,不显示。 image

但是 如果 设置 indicator.indicatorPosition = .top,会显示在顶部,这个是什么原因呢? image

chengyifly commented 3 years ago

我也遇到了,默认是bottom,实际y是负数。断点查看在这个行代码,拿到的height是0, case .bottom: y = model.currentSelectedItemFrame.size.height - height - verticalOffset

chengyifly commented 3 years ago

哥们你这个过渡色怎么设置的,太帅了