Skip to content

Commit 723ad90

Browse files
committed
update README.md file.
1 parent 7505eb1 commit 723ad90

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
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

Screencast/Screencast01.gif

943 KB
Loading

Screencast/Screencast02.gif

1.49 MB
Loading

Screencast/Screencast03.gif

-1.79 MB
Loading

Screencast/Screencast04.gif

3.95 MB
Loading

0 commit comments

Comments
 (0)