Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KittenYang/DynamicMaskSegmentSwitch
A segment switcher with dynamic text mask effect
https://github.com/KittenYang/DynamicMaskSegmentSwitch
Last synced: about 1 month 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-18T17:53:42.000Z (over 8 years ago)
- Last Synced: 2024-12-04T13:24:40.167Z (about 1 month ago)
- Language: Swift
- Size: 406 KB
- Stars: 309
- Watchers: 7
- Forks: 32
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - DynamicMaskSegmentSwitch - A segment switcher with dynamic text mask effect (UI / Segmented Control)
- awesome-ios-star - DynamicMaskSegmentSwitch - A segment switcher with dynamic text mask effect (UI / Segmented Control)
README
# DynamicMaskSegmentSwitch
A segment switcher with dynamic text mask effect##Preview:
![](maskSwitcher.gif)
Indicator will bounce when progress less than 0 or larger than 1.
![](SwitcherBounceable.gif)
##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.