Skip to content

ZPP506/ZPPFallCollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

ios 铺满轨道弹幕效果实现

为避免重复造轮子,网上查找了两个弹幕效果

  1. OCBarrage 标题很唬人 接入后各种问题 有需要的可以自行查看

  2. BarrageRenderer 这个库还是值得推荐的写的很不错,一般弹幕需求基本都满足,但是弹幕轨道搜寻算法不太满足有点不太满足需求,并不能做到本例中的演示效果,偶尔还会出现弹幕重叠(也可能是我的使用方式不对)

  3. 本例写的比较糙, 性能是短板,有改进方案的老铁记得issues 实现思路:使用collectionView 自定义瀑布流, 然后使用定时器滚动collection的偏移量

简书地址

https://www.jianshu.com/p/48addd78f321

效果:

骑上蜗牛去看大海 2020-07-07 18.04.21.gif

Installation

ZPPFallCollection is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ZPPFallCollection'

Author

ZPP506, 944160330@qq.com

License

ZPPFallCollection is available under the MIT license. See the LICENSE file for more info.

About

弹幕轮播

Resources

Stars

Watchers

Forks

Packages

No packages published