{"id":19704330,"url":"https://github.com/tinymind/lsfloatingactionmenu","last_synced_at":"2026-03-06T15:30:54.769Z","repository":{"id":56919098,"uuid":"56504641","full_name":"tinymind/LSFloatingActionMenu","owner":"tinymind","description":"LSFloatingActionMenu is floating action button component of material design for iOS.","archived":false,"fork":false,"pushed_at":"2016-06-05T13:56:34.000Z","size":239,"stargazers_count":36,"open_issues_count":3,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T04:22:32.842Z","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/tinymind.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-18T12:08:47.000Z","updated_at":"2024-03-08T13:05:30.000Z","dependencies_parsed_at":"2022-08-21T04:20:14.436Z","dependency_job_id":null,"html_url":"https://github.com/tinymind/LSFloatingActionMenu","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSFloatingActionMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSFloatingActionMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSFloatingActionMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSFloatingActionMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinymind","download_url":"https://codeload.github.com/tinymind/LSFloatingActionMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251519015,"owners_count":21602251,"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-11-11T21:21:59.273Z","updated_at":"2026-03-06T15:30:54.702Z","avatar_url":"https://github.com/tinymind.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LSFloatingActionMenu\nLSFloatingActionMenu is floating action button component of material design for iOS. \n\n## ScreenShot\n\n![LSFloatingActionMenu](https://raw.githubusercontent.com/tinymind/LSFloatingActionMenu/master/LSFloatingActionMenuExample.gif)\n\n## Installation\n\n### Add source code to project\n\nAdd [LSFloatingActionMenu](https://github.com/tinymind/LSFloatingActionMenu/tree/master/LSFloatingActionMenuDemo/LSFloatingActionMenuDemo/LSFloatingActionMenu) to your XCode project.\n\n### CocoaPods\n\n```\n    pod 'LSFloatingActionMenu', '~\u003e 1.0.0'\n```\n\n## Usage\n\n``` objc\n#import \"LSFloatingActionMenu.h\"\n\n- (IBAction)onTopLeftButtonClicked:(UIButton *)sender {\n    [self showMenuFromButton:sender withDirection:LSFloatingActionMenuDirectionUp];\n}\n\n- (void)showMenuFromButton:(UIButton *)button withDirection:(LSFloatingActionMenuDirection)direction {\n    button.hidden = YES;\n    \n    NSArray *menuIcons = @[@\"icon_menu_add\", @\"icon_menu_unlock\", @\"icon_menu_kick\", @\"icon_menu_user\", @\"icon_menu_mic\", @\"icon_menu_lock\"];\n    NSMutableArray *menus = [NSMutableArray array];\n    \n    CGSize itemSize = button.frame.size;\n    for (NSString *icon in menuIcons) {\n        LSFloatingActionMenuItem *item = [[LSFloatingActionMenuItem alloc] initWithImage:[UIImage imageNamed:icon] highlightedImage:[UIImage imageNamed:[icon stringByAppendingString:@\"_highlighted\"]]];\n        item.itemSize = itemSize;\n        [menus addObject:item];\n    }\n    \n    self.actionMenu = [[LSFloatingActionMenu alloc] initWithFrame:self.view.bounds direction:direction menuItems:menus menuHandler:^(LSFloatingActionMenuItem *item, NSUInteger index) {\n            //TODO\n    } closeHandler:^{\n        [self.actionMenu removeFromSuperview];\n        self.actionMenu = nil;\n        button.hidden = NO;\n    }];\n    \n    self.actionMenu.itemSpacing = 12;\n    self.actionMenu.startPoint = button.center;\n    \n    [self.view addSubview:self.actionMenu];\n    [self.actionMenu open];\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymind%2Flsfloatingactionmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinymind%2Flsfloatingactionmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymind%2Flsfloatingactionmenu/lists"}