Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrommcarrasco/slicecontrol
π° Simply a better & animated UISegmentedControl
https://github.com/pedrommcarrasco/slicecontrol
animation cocoapods ios segmentedcontrol swift ui-components uikit
Last synced: 9 days ago
JSON representation
π° Simply a better & animated UISegmentedControl
- Host: GitHub
- URL: https://github.com/pedrommcarrasco/slicecontrol
- Owner: pedrommcarrasco
- License: mit
- Created: 2019-01-17T19:24:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-08T12:08:45.000Z (over 2 years ago)
- Last Synced: 2024-10-04T22:16:20.191Z (about 1 month ago)
- Topics: animation, cocoapods, ios, segmentedcontrol, swift, ui-components, uikit
- Language: Swift
- Homepage:
- Size: 2.9 MB
- Stars: 47
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
> **Slice** *(/slΙΙͺs/)*, *noun*
>
> "A slice is any small part that has been separated from something larger"[![CocoaPods](https://img.shields.io/cocoapods/v/SliceControl.svg)](https://cocoapods.org/pods/SliceControl)
[![apm](https://img.shields.io/apm/l/vim-mode.svg)](https://github.com/pedrommcarrasco/SliceControl/blob/master/LICENSE)# Usage Example β¨οΈ
After installing **SliceControl**, you should start by importing the framework:
```swift
import SliceControl
```Once imported, you can start using **SliceControl** like follows:
```swift
sliceControl = SliceControl(with: ["All", "Liked", "Favourited"],
primaryColor: .darkGray,
secondaryColor: .white,
padding: 12)// Implement SliceControlDelegate to intercept actions
sliceControl.delegate = selfview.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](https://github.com/pedrommcarrasco/RxSliceControl)** is here to save you!# Instalation π¦
**SliceControl** is available through [CocoaPods](https://cocoapods.org/pods/SliceControl). In order to install, add the following line to your Podfile:
```swift
pod 'SliceControl'
```
And run the following command in terminal:```swift
pod install
```# Sample Project π²
There's a sample project in this repository called [Example](https://github.com/pedrommcarrasco/SliceControl/tree/master/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](https://github.com/pedrommcarrasco/Brooklyn)** and **[CocoaHub](https://cocoahub.app)**.
I'm also a conference and meetup organizer, being part of **[SwiftAveiro](https://swiftaveiro.xyz)** and **[CocoaHeads Porto](https://www.meetup.com/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](https://github.com/pedrommcarrasco/SliceControl/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) or opening [pull requests](https://github.com/pedrommcarrasco/SliceControl/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc).
# License β
SliceControl's available under the MIT license. See the [LICENSE](https://github.com/pedrommcarrasco/SliceControl/blob/master/LICENSE) file for more information.