Skip to content

situxinxin/WolfSegment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WolfSegment

一种替代UISegmentedControl的滑动方式,模仿谷歌产品/网易新闻中使用的分段控制的风格。

example

使用简单 欢迎随时需求完善

    let wolfSegment = WolfSegmentBar.init(frame: CGRect.init(x: 0, y: 100, width: view.frame.width, height: 40),
                                          titles: ["Apple Store", "头条", "世界杯", "测试长文字", "新时代", "娱乐", "体育", "要闻", "段子", "微资讯", "本地", "科技", "Apple Store"],
                                          config: WolfButtonConfig.default())
    view.addSubview(wolfSegment)
    
    wolfSegment.selectIndex = { index in
        print(index)
    }

About

一种替代UISegmentedControl的滑动方式,模仿谷歌产品/网易新闻中使用的分段控制的风格。

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Swift 100.0%