SkillAgentSearch skills...

SliceControl

🍰 Simply a better & animated UISegmentedControl

Install / Use

/learn @pedrommcarrasco/SliceControl
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> <img src="logo.gif?raw=true alt="SliceControl" width="100%"/> </p>

Slice (/slΙ‘Ιͺs/), noun

"A slice is any small part that has been separated from something larger"

CocoaPods apm

Usage Example ⌨️

After installing SliceControl, you should start by importing the framework:

import SliceControl

Once imported, you can start using SliceControl like follows:

sliceControl = SliceControl(with: ["All", "Liked", "Favourited"],
                            primaryColor: .darkGray,
                            secondaryColor: .white,
                            padding: 12)

// Implement SliceControlDelegate to intercept actions
sliceControl.delegate = self

view.addSubview(sliceControl)
// ... Constrain it

You can also set its UIFont and starting option.

RxSwift

Would you like to subscribe to SliceControl's events using RxSwift? RxSliceControl is here to save you!

Instalation πŸ“¦

SliceControl is available through CocoaPods. In order to install, add the following line to your Podfile:

pod 'SliceControl'

And run the following command in terminal:

pod install

Sample Project πŸ“²

There's a sample project in this repository called Example.

Support SliceControl ❀️

Hello there πŸ‘‹

I’m Pedro, a Portuguese iOS Engineer since February 2017. I’m an avid OSS enthusiast and contributor - help by sharing, learn by what’s shared.

I've built and open-sourced multiple frameworks and applications, including Brooklyn and CocoaHub.

I'm also a conference and meetup organizer, being part of SwiftAveiro and CocoaHeads Porto.

If you enjoy my work and would like to help me continue it, please consider:

  • https://github.com/users/pedrommcarrasco/sponsorship
  • https://www.buymeacoffee.com/pedrommcarrasco
  • https://www.paypal.me/pedrommcarrasco

Contributing πŸ™Œ

Feel free to contribute to this project by providing ideas or opening pull requests.

License β›”

SliceControl's available under the MIT license. See the LICENSE file for more information.

Related Skills

View on GitHub
GitHub Stars47
CategoryDevelopment
Updated9mo ago
Forks4

Languages

Swift

Security Score

87/100

Audited on Jun 30, 2025

No findings