{"id":13742985,"url":"https://github.com/sebastienwindal/FRDLivelyButton","last_synced_at":"2025-05-09T00:32:28.705Z","repository":{"id":14487107,"uuid":"17199785","full_name":"sebastienwindal/FRDLivelyButton","owner":"sebastienwindal","description":null,"archived":false,"fork":false,"pushed_at":"2016-09-13T00:40:19.000Z","size":1721,"stargazers_count":1273,"open_issues_count":5,"forks_count":131,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-04-08T00:04:05.857Z","etag":null,"topics":[],"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/sebastienwindal.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":"2014-02-26T05:19:50.000Z","updated_at":"2025-02-18T14:27:34.000Z","dependencies_parsed_at":"2022-07-22T12:32:58.888Z","dependency_job_id":null,"html_url":"https://github.com/sebastienwindal/FRDLivelyButton","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienwindal%2FFRDLivelyButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienwindal%2FFRDLivelyButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienwindal%2FFRDLivelyButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienwindal%2FFRDLivelyButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastienwindal","download_url":"https://codeload.github.com/sebastienwindal/FRDLivelyButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252974540,"owners_count":21834274,"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-08-03T05:00:38.555Z","updated_at":"2025-05-09T00:32:28.301Z","avatar_url":"https://github.com/sebastienwindal.png","language":"Objective-C","readme":"# FRDLivelyButton\n\n`FRDLivelyButton` is a simple UIButton subclass intended to be used inside a UIBarButtonItem,\neven though it can be used anywhere you can use a UIButton. \nIt is entirely Core Graphics driven, supports 5 common button types (menu, close, add, etc...)\nused in navigation bar, and will nicely animate any button type changes and touch events.\n\n![demo](images/screenshot.gif)\n\n## Requirements\n\n`FRDLivelyButton` uses ARC and requires iOS 6.1+.\n\n\n## Installation\n\n### CocoaPods\n\n`pod 'FRDLivelyButton', '~\u003e 1.1.3'`\n\n### Manual\n\nCopy the folder `FRDLivelyButton` to your project.\n\n## Usage\n\nAdd a FRDLivelyButton either in code or using interface builder.\n\nExample, how to add a ```FRDLivelyButton``` in a nav bar:\n\n``` objc\nFRDLivelyButton *button = [[FRDLivelyButton alloc] initWithFrame:CGRectMake(0,0,36,28)];\n[button setStyle:kFRDLivelyButtonStyleHamburger animated:NO];\n[button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];\nUIBarButtonItem *buttonItem = [[UIBarButtonItem alloc] initWithCustomView:button];\nself.navigationItem.rightBarButtonItem = buttonItem;\n```\n\nTo change the button style, just call ```setStyle:animated```:\n\n``` objc\n[self.myButton setStyle:kFRDLivelyButtonStyleCircleClose animated:YES];\n```\n\nThe current type of the button can be accessed using the buttonStyle property:\n\n``` objc\n- (IBAction)buttonAction:(FRDLivelyButton *)sender\n{\n    if (sender.buttonStyle == kFRDLivelyButtonStylePlus) {\n    \t// logic\n    } else ....\n}\n```\n\n\n## Customizing Appearance\n\nButton appearance and behavior can be customized using an options NSDictionary. Color, highlighted color, line thickness, animation \ndurations, etc... can be customized. Default should work just fine though.\n\nSee FRDLivelyButton.h for list of possible attributes.\n\nExample:\n\n``` objc\n[button setOptions:@{ kFRDLivelyButtonLineWidth: @(2.0f),\n                      kFRDLivelyButtonHighlightedColor: [UIColor colorWithRed:0.5 green:0.8 blue:1.0 alpha:1.0],\n                      kFRDLivelyButtonColor: [UIColor blueColor]\n                      }];\n```\n\n\n## License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2014 Sebastien Windal\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n\n\n","funding_links":[],"categories":["Objective-C  Stars 1000以内排名整理"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastienwindal%2FFRDLivelyButton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastienwindal%2FFRDLivelyButton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastienwindal%2FFRDLivelyButton/lists"}