{"id":19856975,"url":"https://github.com/johnvuko/jthamburgerbutton","last_synced_at":"2025-10-28T11:42:18.998Z","repository":{"id":29170811,"uuid":"32701393","full_name":"johnvuko/JTHamburgerButton","owner":"johnvuko","description":"An animated hamburger button for iOS.","archived":false,"fork":false,"pushed_at":"2015-05-30T16:36:41.000Z","size":720,"stargazers_count":350,"open_issues_count":1,"forks_count":38,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-07-22T10:48:16.421Z","etag":null,"topics":["hamburger","hamburger-menu","ios","ios-animation"],"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/johnvuko.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":"2015-03-22T23:37:44.000Z","updated_at":"2024-06-12T08:42:30.000Z","dependencies_parsed_at":"2022-08-17T20:05:06.507Z","dependency_job_id":null,"html_url":"https://github.com/johnvuko/JTHamburgerButton","commit_stats":null,"previous_names":["johnvuko/jthamburgerbutton"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTHamburgerButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTHamburgerButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTHamburgerButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTHamburgerButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnvuko","download_url":"https://codeload.github.com/johnvuko/JTHamburgerButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922248,"owners_count":20855345,"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":["hamburger","hamburger-menu","ios","ios-animation"],"created_at":"2024-11-12T14:17:06.518Z","updated_at":"2025-10-28T11:42:18.891Z","avatar_url":"https://github.com/johnvuko.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JTHamburgerButton\n\n[![CI Status](http://img.shields.io/travis/jonathantribouharet/JTHamburgerButton.svg)](https://travis-ci.org/jonathantribouharet/JTHamburgerButton)\n![Version](https://img.shields.io/cocoapods/v/JTHamburgerButton.svg)\n![License](https://img.shields.io/cocoapods/l/JTHamburgerButton.svg)\n![Platform](https://img.shields.io/cocoapods/p/JTHamburgerButton.svg)\n\nAn animated hamburger button for iOS.\n\n## Installation\n\nWith [CocoaPods](http://cocoapods.org/), add this line to your Podfile.\n\n    pod 'JTHamburgerButton', '~\u003e 1.0'\n\n## Screenshots\n\n![Example](./Screens/example.gif \"Example View\")\n\n## Usage\n\n### Basic usage\n\n```objective-c\n#import \u003cUIKit/UIKit.h\u003e\n\n#import \u003cJTHamburgerButton.h\u003e\n\n@interface ViewController : UIViewController\n\n@property (weak, nonatomic) IBOutlet JTHamburgerButton *button;\n\n@end\n```\n\n```objective-c\n#import \"ViewController.h\"\n\n@implementation ViewController\n\n- (IBAction)didBackButtonTouch:(JTHamburgerButton *)sender\n{\n    if(sender.currentMode == JTHamburgerButtonModeHamburger){\n        [sender setCurrentModeWithAnimation:JTHamburgerButtonModeArrow];\n    }\n    else{\n        [sender setCurrentModeWithAnimation:JTHamburgerButtonModeHamburger];\n    }\n}\n\n- (IBAction)didCloseButtonTouch:(JTHamburgerButton *)sender\n{\n    if(sender.currentMode == JTHamburgerButtonModeHamburger){\n        [sender setCurrentModeWithAnimation:JTHamburgerButtonModeCross];\n    }\n    else{\n        [sender setCurrentModeWithAnimation:JTHamburgerButtonModeHamburger];\n    }\n}\n\n@end\n```\n\nThe method `setCurrentModeWithAnimation` animates the transition from one mode to another. There is also `setCurrentMode` which changes the view without transition.\n\nThere are three modes:\n- JTHamburgerButtonModeHamburger\n- JTHamburgerButtonModeArrow\n- JTHamburgerButtonModeCross\n\n### Customize the design\n\n- `lineHeight`\n- `lineWidth`\n- `lineSpacing`\n- `lineColor`\n- `animationDuration`\n\nAfter the change of one of this properties you have to call `updateAppearance` to update the view.\n\n\n## Requirements\n\n- iOS 7 or higher\n- Automatic Reference Counting (ARC)\n\n## Author\n\n- [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))\n\n## License\n\nJTHamburgerButton is released under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjthamburgerbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnvuko%2Fjthamburgerbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjthamburgerbutton/lists"}