https://github.com/kittenyang/dynamicmasksegmentswitch
A segment switcher with dynamic text mask effect
https://github.com/kittenyang/dynamicmasksegmentswitch
Last synced: 27 days ago
JSON representation
A segment switcher with dynamic text mask effect
- Host: GitHub
- URL: https://github.com/kittenyang/dynamicmasksegmentswitch
- Owner: KittenYang
- License: mit
- Created: 2016-05-12T18:32:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-18T17:53:42.000Z (over 8 years ago)
- Last Synced: 2025-05-08T20:57:50.053Z (27 days ago)
- Language: Swift
- Size: 406 KB
- Stars: 309
- Watchers: 6
- Forks: 32
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DynamicMaskSegmentSwitch
A segment switcher with dynamic text mask effect##Preview:

Indicator will bounce when progress less than 0 or larger than 1.

##Simple Usage:
You can create DynamicMaskSegmentSwitch by xib or programmatically.Then just fill the property named `configure`.
```swift
let configure = DynamicMaskSegmentSwitchConfigure(highlightedColor: .orangeColor(), normalColor: .whiteColor(), items: ["首页","消息","发现","个人"])
switcher.configure = configure
```That's all!
You can tap the specific item,the indicator will move to target item.
You can also change the property named `progress`,the indicator will also move with progress.