SkillAgentSearch skills...

DynamicMaskSegmentSwitch

A segment switcher with dynamic text mask effect

Install / Use

/learn @KittenYang/DynamicMaskSegmentSwitch
About this skill

Quality Score

0/100

Supported Platforms

Universal

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.

    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.

View on GitHub
GitHub Stars309
CategoryDevelopment
Updated1y ago
Forks32

Languages

Swift

Security Score

80/100

Audited on Jun 4, 2024

No findings