{"id":15026572,"url":"https://github.com/gmarm/bettersegmentedcontrol","last_synced_at":"2025-05-15T01:08:34.786Z","repository":{"id":37391015,"uuid":"55334369","full_name":"gmarm/BetterSegmentedControl","owner":"gmarm","description":"An easy to use, customizable replacement for UISegmentedControl \u0026 UISwitch.","archived":false,"fork":false,"pushed_at":"2023-04-11T22:16:40.000Z","size":4434,"stargazers_count":2320,"open_issues_count":35,"forks_count":284,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-05-14T18:54:10.592Z","etag":null,"topics":["carthage","cocoa","cocoapods","ios","segmentedcontrol","swift","swift-3","swift-4","swift-package-manager","swift4","swift4-1","swift5","swift5-1","switch","ui","ui-element","uisegmentedcontrol","uiswitch"],"latest_commit_sha":null,"homepage":null,"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/gmarm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-04-03T07:10:24.000Z","updated_at":"2025-05-14T09:49:38.000Z","dependencies_parsed_at":"2024-04-24T11:01:43.738Z","dependency_job_id":"50dbb08a-38b3-442d-af27-58af922649ad","html_url":"https://github.com/gmarm/BetterSegmentedControl","commit_stats":{"total_commits":190,"total_committers":11,"mean_commits":"17.272727272727273","dds":0.06315789473684208,"last_synced_commit":"32348f8fc700c78a6aefa731214cb4497757a48b"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmarm%2FBetterSegmentedControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmarm%2FBetterSegmentedControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmarm%2FBetterSegmentedControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmarm%2FBetterSegmentedControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmarm","download_url":"https://codeload.github.com/gmarm/BetterSegmentedControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254254042,"owners_count":22039792,"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":["carthage","cocoa","cocoapods","ios","segmentedcontrol","swift","swift-3","swift-4","swift-package-manager","swift4","swift4-1","swift5","swift5-1","switch","ui","ui-element","uisegmentedcontrol","uiswitch"],"created_at":"2024-09-24T20:04:43.047Z","updated_at":"2025-05-15T01:08:29.764Z","avatar_url":"https://github.com/gmarm.png","language":"Swift","readme":"# BetterSegmentedControl\n\n![](https://img.shields.io/badge/Swift-5.1-blue.svg?style=flat)\n![](https://app.bitrise.io/app/1d06a34a06589be2/status.svg?token=i0xHqYqUAjHGkzToH5FVOg\u0026branch=master)\n[![Version](https://img.shields.io/cocoapods/v/BetterSegmentedControl.svg?style=flat)](http://cocoapods.org/pods/BetterSegmentedControl)\n[![License](https://img.shields.io/cocoapods/l/BetterSegmentedControl.svg?style=flat)](http://cocoapods.org/pods/BetterSegmentedControl)\n[![Platform](https://img.shields.io/cocoapods/p/BetterSegmentedControl.svg?style=flat)](http://cocoapods.org/pods/BetterSegmentedControl)\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Assets/logo-transparent-background.png\" /\u003e\n\u003c/p\u003e\n\u003cbr /\u003e\n\n`BetterSegmentedControl` is an easy to use, customizable replacement for\n`UISegmentedControl` and `UISwitch` written in Swift.\n\n## Features\n\n- [x] Can be used as a segmented control or switch\n- [x] Plethora of customizable options from colors to insets, radii and\nanimations\n- [x] Use text or icons as segments, or add your own custom segments\n- [x] Designable straight in Interface Builder\n- [x] Accessibility support\n- [x] iPad cursor support\n- [x] Customizable behavior\n- [x] Right-to-left languages support\n- [x] Fully tested\n\nCheck the latest release notes [here][release-notes]!\n\n[release-notes]: https://github.com/gmarm/BetterSegmentedControl/releases/tag/2.0.1\n\n## Examples\n\n#### iOS\n![Demo](Assets/demo_main.gif)\n\n#### iPad cursor\n\n![Demo](Assets/demo_ipad_cursor.gif)\n\n\n## Requirements\n\n- iOS 9.0+\n- Xcode 8+\n\n\n## Installation\n\n### Swift Package Manager\n\nBetterSegmentedControl is available through Swift Package Manager. To install\nit, simply go to Xcode under `File \u003e Swift Packages \u003e Add Package Dependency...`\n\n### CocoaPods\n\nBetterSegmentedControl is available through [CocoaPods](http://cocoapods.org).\nTo install it, simply add the following line to your Podfile:\n\n```ruby\n# Swift 5.1\npod 'BetterSegmentedControl', '~\u003e 2.0'\n\n# Swift 4\npod 'BetterSegmentedControl', '1.0'\n\n# Swift 3 / Objective-C\npod 'BetterSegmentedControl', '0.8'\n```\n\n### Manually\n\nIf you prefer not to use CocoaPods or Swift Package Manager, you can integrate\nBetterSegmentedControl into your project manually.\n\n\n## Usage\n\n```swift\nlet control = BetterSegmentedControl(frame: CGRect(x: 16.0,\n                                                   y: 0,\n                                                   width: view.bounds.width - 32.0,\n                                                   height: 44.0))\nview.addSubview(control)\n```\n\nYou can find several ways of using it, such as by designing it in a Storyboard\nfile or creating it in code in the example project.\n\nTo run the example project, clone the repo, and run `pod install` from the\nExample directory first.\n\n\n## Contribution\n\nFeel free to submit Pull Requests or send me your feedback and suggestions!\n\nLogo by [Guillaume Galante][guillaume-dribble].\n\n[guillaume-dribble]: https://dribbble.com/guillaumegalante\n\n## Author\n\nGeorge Marmaridis\n\n- https://github.com/gmarm\n- https://twitter.com/gmarmas\n- https://www.linkedin.com/in/gmarm\n- gmarmas@gmail.com\n\n\n## License\n\nBetterSegmentedControl is available under the MIT license. See the LICENSE file\nfor more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmarm%2Fbettersegmentedcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmarm%2Fbettersegmentedcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmarm%2Fbettersegmentedcontrol/lists"}