{"id":2747,"url":"https://github.com/HeshamMegid/HMSegmentedControl","last_synced_at":"2025-08-03T00:32:32.037Z","repository":{"id":6090303,"uuid":"7317163","full_name":"HeshamMegid/HMSegmentedControl","owner":"HeshamMegid","description":"A highly customizable drop-in replacement for UISegmentedControl.","archived":false,"fork":false,"pushed_at":"2024-03-26T02:26:56.000Z","size":1210,"stargazers_count":4040,"open_issues_count":17,"forks_count":829,"subscribers_count":102,"default_branch":"master","last_synced_at":"2025-07-28T00:21:11.104Z","etag":null,"topics":["hmsegmentedcontrol","ios","objective-c"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HeshamMegid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"publiccode":null,"codemeta":null}},"created_at":"2012-12-25T12:01:10.000Z","updated_at":"2025-07-25T08:00:58.000Z","dependencies_parsed_at":"2022-08-06T19:15:13.966Z","dependency_job_id":"b77c4b5a-7dd4-4919-9535-92b52db0fab0","html_url":"https://github.com/HeshamMegid/HMSegmentedControl","commit_stats":{"total_commits":193,"total_committers":46,"mean_commits":4.195652173913044,"dds":"0.36269430051813467","last_synced_commit":"a2852bd7fe75e0e40d832873ceb0f0a4ec1b8350"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/HeshamMegid/HMSegmentedControl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeshamMegid%2FHMSegmentedControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeshamMegid%2FHMSegmentedControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeshamMegid%2FHMSegmentedControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeshamMegid%2FHMSegmentedControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeshamMegid","download_url":"https://codeload.github.com/HeshamMegid/HMSegmentedControl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeshamMegid%2FHMSegmentedControl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267785249,"owners_count":24144095,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hmsegmentedcontrol","ios","objective-c"],"created_at":"2024-01-05T20:16:21.782Z","updated_at":"2025-08-03T00:32:31.710Z","avatar_url":"https://github.com/HeshamMegid.png","language":"Objective-C","readme":"HMSegmentedControl\n===\n\n[![Pod Version](http://img.shields.io/cocoapods/v/HMSegmentedControl.svg?style=flat)](http://cocoadocs.org/docsets/HMSegmentedControl)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Pod Platform](http://img.shields.io/cocoapods/p/HMSegmentedControl.svg?style=flat)](http://cocoadocs.org/docsets/HMSegmentedControl)\n[![Pod License](http://img.shields.io/cocoapods/l/HMSegmentedControl.svg?style=flat)](http://opensource.org/licenses/MIT)\n\nA highly customizable drop-in replacement for UISegmentedControl, used by more than 22,000 apps, including TikTok, PayPal, Imgur and Bleacher Report.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/HeshamMegid/HMSegmentedControl/master/Screenshots/6.PNG\" width=\"70%\"\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/HeshamMegid/HMSegmentedControl/master/Screenshots/8.jpeg\" width=\"70%\"\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/HeshamMegid/HMSegmentedControl/master/Screenshots/7.PNG\" width=\"70%\"\u003e\n\u003c/div\u003e\n\n\n# Features\n\n- 📸 Supports both text and images\n- ↕️ Multiple sizing and selection styles\n- 📜 Horizontal scrolling for an infinite number of segments\n- ⚙️ Advanced title styling with text attributes for font, color, kerning, shadow, etc\n- 🖥 Compatible with both Swift and Objective-C\n- 📱 Updated for Xcode 11, iOS 13 and Swift 5. Supports all the way back to iOS 7!\n\n# Installation\n\n```\npod 'HMSegmentedControl'\n```\n\nInstallation via Carthage is also supported..\n\n# Usage\n\nThe code below will create a segmented control with the default looks:\n\n```swift\nlet segmentedControl = HMSegmentedControl(sectionTitles: [\n    \"Trending\",\n    \"News\",\n    \"Library\"\n])\n\nsegmentedControl.frame = CGRect(x: 0, y: 0, width: 100, height: 40)\nsegmentedControl.addTarget(self, action: #selector(segmentedControlChangedValue(segmentedControl:)), for: .valueChanged)\nview.addSubview(segmentedControl)\n```\n\nIncluded is a demo project showing how to fully customize HMSegmentedControl.\n\n# Possible Styles\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/HeshamMegid/HMSegmentedControl/master/Screenshots/1.png\" width=\"70%\"\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/HeshamMegid/HMSegmentedControl/master/Screenshots/2.png\" width=\"70%\"\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/HeshamMegid/HMSegmentedControl/master/Screenshots/3.png\" width=\"70%\"\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/HeshamMegid/HMSegmentedControl/master/Screenshots/4.png\" width=\"70%\"\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/HeshamMegid/HMSegmentedControl/master/Screenshots/5.png\" width=\"70%\"\u003e\n\u003c/div\u003e\n\n# Apps Using HMSegmentedControl\n\nIf you are using HMSegmentedControl in your app or know of an app that uses it, please add it to [this list](https://github.com/HeshamMegid/HMSegmentedControl/wiki/Apps-using-HMSegmentedControl).\n\n# Need Help?\n  \nIf you need help with HMSegmentedControl, or with iOS/Swift development in general, check out [swiftmentor.io](https://swiftmentor.io)\n\n# License\n\nHMSegmentedControl is licensed under the terms of the MIT License. Please see the [LICENSE](LICENSE.md) file for full details.\n\nIf this code was helpful, I would love to hear from you.\n\n[@HeshamMegid](http://twitter.com/HeshamMegid)   \n[http://hesh.am](http://hesh.am)\n","funding_links":[],"categories":["UI","Objective-C","iOS","objective-c"],"sub_categories":["Segmented Control","Layout","Other free courses","PageView","界面控件"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHeshamMegid%2FHMSegmentedControl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHeshamMegid%2FHMSegmentedControl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHeshamMegid%2FHMSegmentedControl/lists"}