pag

PagingViewKit

A powerful and easy to use segment view 【QQ、淘宝、微博、腾讯、网易新闻、今日头条等标题滚动视图】

Showing:

Popularity

Downloads/wk

0

GitHub Stars

94

Maintenance

Last Commit

8mos ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

PagingViewKit

Objc 版本

结构图

效果图

Installation

  • CocoaPods 导入 pod 'PagingViewKit', '~> 1.1.5'

代码介绍

  • 初始化方法
let configure: PagingTitleViewConfigure = PagingTitleViewConfigure()
// PagingTitle
let pagingTitleView = PagingTitleView(frame: frame, titles: titles, delegate: self, configure: configure)
view.addSubview(pagingTitleView)

// PagingContent
let pagingContent: PagingContentScrollView = PagingContentScrollView(frame: frame, parentVC: self, childVCs: childVCs)
pagingContent.delegate = self
view.addSubview(pagingContent)
  • PagingTitleView 代理方法
func pagingTitleView(pagingTitleView: PagingTitleView, index: Int) {
    pagingContentView.setPagingContentScrollView(index: index)
}
  • PagingContentScrollView 代理方法
func pagingContentScrollView(pagingContentScrollView: PagingContentScrollView, progress: CGFloat, currentIndex: Int, targetIndex: Int) {
    pagingTitleView.setPagingTitleView(progress: progress, currentIndex: currentIndex, targetIndex: targetIndex)
}

Requirements

  • iOS 10.0 +
  • Swift 5.0 +

Concluding remarks

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100