{"id":13990291,"url":"https://github.com/luugiathuy/GTScrollNavigationBar","last_synced_at":"2025-07-22T12:31:39.565Z","repository":{"id":12684195,"uuid":"15356347","full_name":"luugiathuy/GTScrollNavigationBar","owner":"luugiathuy","description":"A scrollable UINavigationBar that follows a UIScrollView","archived":false,"fork":false,"pushed_at":"2017-04-26T10:46:03.000Z","size":327,"stargazers_count":552,"open_issues_count":12,"forks_count":85,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-09-18T19:06:16.164Z","etag":null,"topics":["ios","objective-c","uinavigationbar","uiscrollview"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luugiathuy.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":"2013-12-21T08:56:12.000Z","updated_at":"2024-04-27T13:45:12.000Z","dependencies_parsed_at":"2022-09-23T08:53:18.872Z","dependency_job_id":null,"html_url":"https://github.com/luugiathuy/GTScrollNavigationBar","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luugiathuy%2FGTScrollNavigationBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luugiathuy%2FGTScrollNavigationBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luugiathuy%2FGTScrollNavigationBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luugiathuy%2FGTScrollNavigationBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luugiathuy","download_url":"https://codeload.github.com/luugiathuy/GTScrollNavigationBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226602930,"owners_count":17657806,"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":["ios","objective-c","uinavigationbar","uiscrollview"],"created_at":"2024-08-09T13:02:31.924Z","updated_at":"2024-11-29T09:31:07.582Z","avatar_url":"https://github.com/luugiathuy.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"# GTScrollNavigationBar\n\n[![CocoaPods Version](https://img.shields.io/cocoapods/v/GTScrollNavigationBar.svg)](http://cocoadocs.org/docsets/GTScrollNavigationBar) [![Build Status](https://travis-ci.org/luugiathuy/GTScrollNavigationBar.svg?branch=master)](https://travis-ci.org/luugiathuy/GTScrollNavigationBar) [![Coverage Status](https://coveralls.io/repos/luugiathuy/GTScrollNavigationBar/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/luugiathuy/GTScrollNavigationBar?branch=master)\n\nA lightweight scrollable UINavigationBar that follows a UIScrollView. This project was inspired by the navigation bar functionality seen in the Chrome, Facebook and Instagram iOS apps.\n\n![GTScrollNavigationBar Screenshot 1](http://luugiathuy.com/images/GTScrollNavigationBar1.png)\u0026nbsp;![GTScrollNavigationBar Screenshot 2](http://luugiathuy.com/images/GTScrollNavigationBar2.png)\n\n## Installation\n\n### CocoaPods\n\nAdd pod `GTScrollNavigationBar` to your Podfile.\n\n### Manually\n\nAdd the `GTScrollNavigationBar` folder to your project. `GTScrollNavigationBar` uses ARC, so if you have a project that doesn't use ARC, add the `-fobjc-arc` compiler flag to the `GTScrollNavigationBar` files.\n\n## Usage\n\nSet up the navigation controller to use `GTScrollNavigationBar`:\n\n```objective-c\n#import \"GTScrollNavigationBar.h\"\n\nself.navController = [[UINavigationController alloc] initWithNavigationBarClass:[GTScrollNavigationBar class]\n                                                                   toolbarClass:nil];\n[self.navController setViewControllers:@[self.mainViewController] animated:NO];\n```\n\nIn your view controller which has a `UIScrollView`, e.g. `UITableViewController`, set the UIScrollView object to the `GTScrollNavigationBar` in `viewWillAppear:` or `viewDidAppear:` by:\n\n```objective-c\nself.navigationController.scrollNavigationBar.scrollView = self.tableView;\n```\n\nTo unfollow the scrollView, simply set `scrollView` property to `nil`\n\n```objective-c\nself.navigationController.scrollNavigationBar.scrollView = nil;\n```\n\nImplement `scrollViewDidScrollToTop:` in the view controller to reset the navigation bar's position\n\n```objective-c\n- (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView\n{\n    [self.navigationController.scrollNavigationBar resetToDefaultPositionWithAnimation:NO];\n}\n```\n\n## Contact\n\n[@luugiathuy](http://twitter.com/luugiathuy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluugiathuy%2FGTScrollNavigationBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluugiathuy%2FGTScrollNavigationBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluugiathuy%2FGTScrollNavigationBar/lists"}