Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.