{"id":2492,"url":"https://github.com/Eke/EMEmojiableBtn","last_synced_at":"2025-08-03T00:31:56.053Z","repository":{"id":56909425,"uuid":"55257770","full_name":"Eke/EMEmojiableBtn","owner":"Eke","description":"Option selector that works similar to Reactions by fb. Objective-c version","archived":false,"fork":false,"pushed_at":"2016-06-24T07:55:07.000Z","size":531,"stargazers_count":84,"open_issues_count":3,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-24T14:49:07.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Eke.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":"2016-04-01T19:38:46.000Z","updated_at":"2024-04-24T05:50:32.000Z","dependencies_parsed_at":"2022-08-20T19:50:37.274Z","dependency_job_id":null,"html_url":"https://github.com/Eke/EMEmojiableBtn","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eke%2FEMEmojiableBtn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eke%2FEMEmojiableBtn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eke%2FEMEmojiableBtn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eke%2FEMEmojiableBtn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eke","download_url":"https://codeload.github.com/Eke/EMEmojiableBtn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510719,"owners_count":17931756,"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":[],"created_at":"2024-01-05T20:16:15.078Z","updated_at":"2024-12-06T18:30:33.381Z","avatar_url":"https://github.com/Eke.png","language":"Objective-C","funding_links":[],"categories":["UI"],"sub_categories":["Button","Other free courses"],"readme":"# EMEmojiableBtn\n\n[![CI Status](http://img.shields.io/travis/Eke/EMEmojiableBtn.svg?style=flat)](https://travis-ci.org/Erekle/EMEmojiableBtn)\n[![Version](https://img.shields.io/cocoapods/v/EMEmojiableBtn.svg?style=flat)](http://cocoapods.org/pods/EMEmojiableBtn)\n[![License](https://img.shields.io/cocoapods/l/EMEmojiableBtn.svg?style=flat)](http://cocoapods.org/pods/EMEmojiableBtn)\n[![Platform](https://img.shields.io/cocoapods/p/EMEmojiableBtn.svg?style=flat)](http://cocoapods.org/pods/EMEmojiableBtn)\n\n## Usage\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\nThere's also an [Swift implementation](https://github.com/lojals/JOEmojiableBtn) developed by [lojals](https://github.com/lojals).\n\n\n## Installation\n\nEMEmojiableBtn is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"EMEmojiableBtn\"\n```\n\n## Examples\n\n### 1. Basic Instance\n\n#### Example Code\n\n```objc\nEMEmojiableBtn *button = [[EMEmojiableBtn alloc] initWithFrame:CGRectMake(20, 150, 52.0, 52.0)];\nbutton.delegate = self;\nbutton.dataset = @[\n    [[EMEmojiableOption alloc] initWithImage:@\"img_1\" withName:@\"dislike\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_2\" withName:@\"broken\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_3\" withName:@\"he he\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_4\" withName:@\"ooh\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_5\" withName:@\"meh !\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_6\" withName:@\"ahh !\"]\n];\n[button setImage:[UIImage imageNamed:@\"img_1\"] forState:UIControlStateNormal];\n[self.view addSubview:button];\n```\n\n![image](http://i.imgur.com/A6Z1oTI.gif)\n\n### 2. Custom styled instance\n#### Example Code\n\nWith this instance you can fully custom your component. Following the **EMEmojiableBtnConfig** variables.\n\nYou can custom your selector with the following variables, used in the \n\n![image](http://i.imgur.com/e4zaaye.png?1)\n\n\n![image](http://i.imgur.com/yNfyP3c.png?1)\n\n```objc\nEMEmojiableBtnConfig *config = [[EMEmojiableBtnConfig alloc] init];\nconfig.spacing  = 6.0;\nconfig.size     = 30.0;\nconfig.minSize  = 34.0;\nconfig.maxSize  = 45.0;\nconfig.s_options_selector = 30.0;\n\nEMEmojiableBtn *button = [[EMEmojiableBtn alloc] initWithFrame:CGRectMake(20, 150, 52.0, 52.0) withConfig:config];\nbutton.delegate = self;\nbutton.dataset = @[\n    [[EMEmojiableOption alloc] initWithImage:@\"img_1\" withName:@\"dislike\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_2\" withName:@\"broken\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_3\" withName:@\"he he\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_4\" withName:@\"ooh\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_5\" withName:@\"meh !\"],\n    [[EMEmojiableOption alloc] initWithImage:@\"img_6\" withName:@\"ahh !\"]\n];\n[button setImage:[UIImage imageNamed:@\"img_1\"] forState:UIControlStateNormal];\n[self.view addSubview:button];\n```\n\n![image](http://i.imgur.com/G6PmoDE.gif)\n\n#### Available customization options using **EMEmojiableBtnConfig**\n* `size` - Size of each available option\n* `maxSize` - Size of option when it is hilighted\n* `minSize` - Size of options when one option is hilighted. When option is hilighted other options are smaller\n* `spacing` - Spacing between options\n* `s_options_selector` - Bottom space of option selector view to button and information view\n* `backgroundColor` - Background color of screen when options selector is active after UILongPressGestureRecognizer\n* `optionsViewInitialAlpha` - Initial opacity of options listing view\n* `optionsViewBackgroundColor` - Background color of options listing view\n* `optionsViewShadowColor` - Shadow color of options listing view\n* `optionsViewShadowOpacity` - Opacity of options listing shadow\n* `optionsViewShadowOffset` - Offset of options listing shadow\n* `informationViewBackgroundColor` - Background color of information view\n* `informationViewDotsColor` - Dots color of information view\n* `informationViewBorderColor` - Border color of information view\n* `informationViewFont` - Font of information view\n* `informationViewTextColor` - Text color of information view\n* `informationViewText` - Text for information view. Default : Release to cancel\n\n## Author\n\nErekle, ereklemesxi@gmail.com\n\n## License\n\nEMEmojiableBtn is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEke%2FEMEmojiableBtn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEke%2FEMEmojiableBtn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEke%2FEMEmojiableBtn/lists"}