{"id":28444999,"url":"https://github.com/shadyelyaski/ios-filter-control","last_synced_at":"2026-04-09T00:04:31.705Z","repository":{"id":62453529,"uuid":"4677750","full_name":"ShadyElyaski/ios-filter-control","owner":"ShadyElyaski","description":"An iOS Filter UIControl Subclass. Zero Graphics. Highly Customizable.","archived":false,"fork":false,"pushed_at":"2016-02-17T19:37:47.000Z","size":614,"stargazers_count":357,"open_issues_count":7,"forks_count":66,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-08-04T13:54:28.836Z","etag":null,"topics":["objective-c","uicontrol-subclass"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/ShadyElyaski.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}},"created_at":"2012-06-15T16:57:38.000Z","updated_at":"2025-07-17T16:53:25.000Z","dependencies_parsed_at":"2022-11-02T00:01:05.905Z","dependency_job_id":null,"html_url":"https://github.com/ShadyElyaski/ios-filter-control","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ShadyElyaski/ios-filter-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyElyaski%2Fios-filter-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyElyaski%2Fios-filter-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyElyaski%2Fios-filter-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyElyaski%2Fios-filter-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShadyElyaski","download_url":"https://codeload.github.com/ShadyElyaski/ios-filter-control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadyElyaski%2Fios-filter-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272526579,"owners_count":24949832,"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-08-28T02:00:10.768Z","response_time":74,"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":["objective-c","uicontrol-subclass"],"created_at":"2025-06-06T10:00:45.835Z","updated_at":"2026-04-09T00:04:31.658Z","avatar_url":"https://github.com/ShadyElyaski.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"iOS Filter Control\n==================\n\nAn iOS Filter UIControl Subclass. Zero Graphics. Highly Customizable.\n\nInspired by National Geographics: Park Guides.\n\n# Screenshot\n \nHere's a screenshot for different variations\n\n![ScreenShot](https://raw.github.com/nicolasgoutaland/ios-filter-control/master/Assets/sample.gif)\n\n![My image](http://blog.elyaski.com/wp-content/uploads/2012/06/iOS-Simulator-Screen-shot-Jun-16-2012-2.38.16-AM.png)\n\nYou may watch a demo video on [Youtube](http://www.youtube.com/watch?v=-lvvLnKPUk8)\n\n# Installation\n\n__Cocoapods:__ pod 'SEFilterControl'\n\n__Manual__:\n\n1. In your Xcode Project, take the *SEFilterControl.h and .m* \u0026 *SEFilterKnob.h and .m* from ios-filter-control folder and drag them into your project. \n\n2. Start using this new UIControl Subclass!\n\n# SDK Support\n\nIt supports iOS 5 to iOS 8\nLive rendering in Interface builder will require Xcode 6.x\n\n# Usage\n\n## Creating your filter\n### By Code\nSomewhere, for example in your viewDidLoad, alloc and init the filter UIControl:\n\n```\nSEFilterControl *filter = [[SEFilterControl alloc]initWithFrame:CGRectMake(10, 20, 300, 70) Titles:[NSArray arrayWithObjects:@\"Articles\", @\"News\", @\"Updates\", @\"Featured\", @\"Newest\", @\"Oldest\", nil]];\n```\n\nThis initializes our Filter Control using CGRect and Titles Array of NSStrings.\n\n*Note That height of the control is predefined as 70 and can't be changed* Use __SEFilterControl_HEIGHT__ const for reference.\n\nThen, add target for Value Change Event handling:\n```\n[filter addTarget:self action:@selector(filterValueChanged:) forControlEvents:UIControlEventValueChanged];\n```\nDon't forget to implement the handler we specified later:\n\n```\n-(void)filterValueChanged:(SEFilterControl *) sender{\n\tNSLog(@\"%@\", [NSString stringWithFormat:@\"%d\", sender.SelectedIndex]);\n}\n```\n\t\nAdding to your UIView:\n\n```\n\t[self.view addSubview:filter];\n```\n\n### Via Interface builder\nAdd a new UIView to your xib, and update its class to __SEFilterControl__.\nBind a UIAction to the __valueChanged__ event of your control.\nEnjoy ;)\n\n## Configuration\n### Filter\n| Property        | Effect | Default value |\n|:-------------:|-------------|-----|-----|\n| **progressColor** | Progress track color  | SEFilterControl_DEFAULT_PROGRESS_COLOR |\n| **titlesFont** | Configure all titles font  | SEFilterControl_DEFAULT_TITLE_FONT |\n| **titlesColor** | Configure all titles color  | SEFilterControl_DEFAULT_TITLE_COLOR |\n| **titlesShadowColor** | Configure all titles shadow color  | SEFilterControl_DEFAULT_TITLE_SHADOW_COLOR |\n\n### Knob\n| Property        | Effect | Default value |\n|:-------------:|-------------| -----|---|\n| **handlerColor** | Configure knob color  | SEFilterKnob_DEFAULT_HANDLER_COLOR |\n| **shadowColor** | Configure knob shadow color  | SEFilterKnob_DEFAULT_SHADOW_COLOR |\n| **shadow** | Enable / sisable shadow  | SEFilterKnob_DEFAULT_SHADOW |\n\n### Continuous mode\nIf __continuous__ is set to YES, filter will generate __valueChanged__ events will user is dragging the knb. If NO, an event will be sent once knob released.\n\n\n### UIAppearance\n__SEFilterControl__ and __SEFilterKnob__ declare __UIAppearance__ methods, allowing you to style all instances at a time.\n\n# Acknowledgment\n\nSpecial thanks to mash, Ltd. team for their support.\n\nThanks to Nicolas Goutaland for the updated version.\n       \nLicense\n-------\n\nThis Code is released under the MIT License by [Shady Elyaski](http://www.elyaski.com)\n\nWould love to hear from you when you use this custom UIControl in your project!\n\nCheers,\n\nShady A. Elyaski\n  \nhttp://www.elyaski.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadyelyaski%2Fios-filter-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadyelyaski%2Fios-filter-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadyelyaski%2Fios-filter-control/lists"}