2020
2121## Screencast from our Demo
2222
23- | ![ ] ( https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast01.gif ) | ![ ] ( https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast02.gif ) | ![ ] ( https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast03.gif ) |
24- | :------------: | :------------: | :------------: |
25- | ` indicatorType = .stretch ` ` titleStyle = .gradient ` | ` indicatorType = .normal ` ` titleStyle = .transfrom ` | ` indicatorType = .stretch ` ` titleStyle = .transfrom ` |
23+ | ![ ] ( https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast01.gif ) | ![ ] ( https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast02.gif ) | ![ ] ( https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast03.gif ) | ![ ] ( https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast04.gif ) |
24+ | :------------: | :------------: | :------------: | :------------: |
25+ | ` indicatorType = .stretch ` ` titleStyle = .gradient ` | ` indicatorType = .normal ` ` titleStyle = .cover ` | ` indicatorType = .stretch ` ` titleStyle = .transfrom ` | ` indicatorType = .normal ` ` titleStyle = .transfrom ` |
2626
2727## Requirements
2828
@@ -79,7 +79,8 @@ class ViewController: UIViewController {
7979 }
8080 fileprivate func example () {
8181
82- let titles = [" 头条" , " 精选" , " 轻松一刻" , " 娱乐" , " 新时代" , " 手机" ," 体育" , " 视频" , " 财经" , " 汽车" ," 军事" , " 房产" , " 健康" , " 彩票" , " 搞笑" ]
82+ let titles = [" Apple" , " Banana" , " Watermelon" , " Orange" , " Lemon" , " Pear" ," Strawberry" , " Sapodilla" , " Haw" , " Grape" ," Mango" , " Plum" , " Persimmon" , " Fig" , " Betelnut" ]
83+
8384 var controllers: [UIViewController] = []
8485
8586 for _ in 0 ..< titles.count {
@@ -89,10 +90,12 @@ class ViewController: UIViewController {
8990 addChildViewController (vc)
9091 controllers.append (vc)
9192 }
92- /* -- LCSlideMenu -- */
93+ /* -- LCSlideMenu -- */
9394 let slideMenu = LCSlideMenu (frame : CGRect (x : 0 , y : 64 , width : view.frame .width , height : 40 ), titles : titles, childControllers : controllers)
9495 slideMenu.indicatorType = .stretch
9596 slideMenu.titleStyle = .gradient
97+ slideMenu.isShowIndicatorView = true
98+ slideMenu.isNeedMask = false
9699 slideMenu.selectedColor = .red
97100 slideMenu.unSelectedColor = .black
98101 slideMenu.indicatorView .backgroundColor = .red
0 commit comments