{"id":2770,"url":"https://github.com/LeonardoCardoso/SectionedSlider","last_synced_at":"2025-08-06T15:30:43.217Z","repository":{"id":62455059,"uuid":"93515419","full_name":"LeonardoCardoso/SectionedSlider","owner":"LeonardoCardoso","description":"iOS 11 Control Center Slider","archived":false,"fork":false,"pushed_at":"2020-06-16T21:22:28.000Z","size":1654,"stargazers_count":371,"open_issues_count":2,"forks_count":27,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-05T16:38:09.639Z","etag":null,"topics":["ios","library","objective-c","slider","swift","ui"],"latest_commit_sha":null,"homepage":"https://leocardz.com/sectionedslider-74270d241d8f","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeonardoCardoso.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-06T12:23:36.000Z","updated_at":"2024-08-26T08:35:54.000Z","dependencies_parsed_at":"2022-11-02T00:00:35.463Z","dependency_job_id":null,"html_url":"https://github.com/LeonardoCardoso/SectionedSlider","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FSectionedSlider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FSectionedSlider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FSectionedSlider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FSectionedSlider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeonardoCardoso","download_url":"https://codeload.github.com/LeonardoCardoso/SectionedSlider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228915464,"owners_count":17991409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","library","objective-c","slider","swift","ui"],"created_at":"2024-01-05T20:16:22.386Z","updated_at":"2024-12-09T15:30:51.943Z","avatar_url":"https://github.com/LeonardoCardoso.png","language":"Swift","funding_links":[],"categories":["UI","Libs","Swift","UI and SwiftUI","UI [🔝](#readme)"],"sub_categories":["Slider","UI","Other free courses"],"readme":"## SectionedSlider\n\n| |\t|\n|:-:|:-:|\n| ![iOS](Images/static.gif) | ![watchOS](Images/static2.gif) |\n\n[![Platform](https://img.shields.io/badge/platform-iOS-orange.svg)](https://github.com/LeonardoCardoso/SectionedSlider#requirements-and-details)\n[![CocoaPods](https://img.shields.io/badge/pod-v0.0.5-red.svg)](https://github.com/LeonardoCardoso/SectionedSlider#cocoapods)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)](https://github.com/LeonardoCardoso/SectionedSlider#carthage)\n\n\u003e Control Center Slider\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n\n## Requirements\n\n- iOS 8.0+\n- Swift 3.0+\n- Xcode 8.0+\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.1.0+ is required to build SectionedSlider 0.0.5+.\n\nTo integrate SectionedSlider into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'SectionedSlider', '~\u003e 0.0.5'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate SectionedSlider into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"LeonardoCardoso/SectionedSlider\" ~\u003e 0.0.5\n```\n\n### Manually\n\nIf you prefer not to use either of the aforementioned dependency managers, you can integrate SectionedSlider into your project manually.\n\n## Usage\n\nYou can use a `SectionedSlider` on [Storyboards](#storyboard) or, if you want to do it programatically, you can create it just like you create a UIView:\n\n```swift\nSectionedSlider(\n    frame: CGRect(x: 0, y: 0, width: 78, height: 200), // Choose a 15.6 / 40 ration for width/height\n    selectedSection: 3, // Initial selected section\n    sections: 10 // Number of sections. Choose between 2 and 20\n)\n```\n\n### Palette\n\nYou also can customize the colors of the button on its constructor.\n\n```swift\nSectionedSlider(\n    frame: wrapView.frame,\n    selectedSection: 3,\n    sections: 10,\n    palette: Palette(\n        viewBackgroundColor: UIColor?,\n        sliderBackgroundColor: UIColor?,\n        sliderColor: UIColor?\n    )\n)\n```\n\n![palette](Images/palette.png)\n\n### Delegate\n\nYou can watch changes of state by implementing the protocol:\n\n```swift\npublic protocol SectionedSliderDelegate {\n    \n\tfunc sectionChanged(slider: SectionedSlider, selected: Int)\n    \n}\n```\n\n### Storyboard\n\nLast but not least, you can customize `SectionedSlider` properties right from Interface Builder or Storyboards. \n\n![storyboard](Images/storyboard.png)\n\n## License\n\nSectionedSlider is released under the MIT license. See [LICENSE](https://github.com/LeonardoCardoso/SectionedSlider/blob/master/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeonardoCardoso%2FSectionedSlider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeonardoCardoso%2FSectionedSlider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeonardoCardoso%2FSectionedSlider/lists"}