{"id":24285874,"url":"https://github.com/kealdishx/ZSNavigationBar","last_synced_at":"2025-09-25T07:31:27.976Z","repository":{"id":56931024,"uuid":"142540412","full_name":"kealdishx/ZSNavigationBar","owner":"kealdishx","description":"ZSNavigationBar uses category to allow you change UINavigationBar appearance dynamically.(supported iOS 11+ and iPhone X)","archived":false,"fork":false,"pushed_at":"2018-07-28T08:02:07.000Z","size":215,"stargazers_count":110,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T23:49:10.976Z","etag":null,"topics":["alpha","background","category","ios","objective-c","swift","uinavigationbar"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/kealdishx.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":"2018-07-27T07:02:41.000Z","updated_at":"2021-08-02T02:25:46.000Z","dependencies_parsed_at":"2022-08-21T00:01:15.408Z","dependency_job_id":null,"html_url":"https://github.com/kealdishx/ZSNavigationBar","commit_stats":null,"previous_names":["zakariyyasv/zsnavigationbar"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kealdishx/ZSNavigationBar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kealdishx%2FZSNavigationBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kealdishx%2FZSNavigationBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kealdishx%2FZSNavigationBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kealdishx%2FZSNavigationBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kealdishx","download_url":"https://codeload.github.com/kealdishx/ZSNavigationBar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kealdishx%2FZSNavigationBar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276881828,"owners_count":25721413,"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","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alpha","background","category","ios","objective-c","swift","uinavigationbar"],"created_at":"2025-01-16T07:16:49.645Z","updated_at":"2025-09-25T07:31:27.506Z","avatar_url":"https://github.com/kealdishx.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZSNavigationBar[中文说明](https://github.com/iiiCeBlink/ZSNavigationBar/blob/master/README_CN.md)\n\nZSNavigationBar uses category to allow you change UINavigationBar appearance dynamically.(supported iOS 11+)\n\n## Installation\n\n### CocoaPods\n\n- **Swift：**\n\n1. Add `pod 'ZSNavigationBar'` to your Podfile.\n2. Run `pod install` or `pod update`.\n3. Import `ZSNavigationBar`.\n\n- **Objective-c：**\n\n1. Add `pod 'ZSNavigationBar-oc'` to your Podfile.\n2. Run `pod install` or `pod update`.\n3. Import `ZSNavigationBar`.\n\n### Manually\n\n1. Add all files under `Source-oc` or `Source-swift` folder.\n2. Link with required frameworks: `UIKit`.\n3. If you use oc version, just import `UINavigationBar+custom.h`.\n\n## Requirements\n\n- iOS 8+\n- Xcode 9+\n- swift 3.0+\n- Objective-c\n\n## Usage\n\n- **Swift：**\n\nThe category includes several methods that helps to change UINavigationBar's appearance dynamically:\n\n```swift\nfunc setCustomBackgroundColor(_ backgroundColor: UIColor)\nfunc setCustomTranslationY(translationY: CGFloat)\nfunc reset()\n```\n\nAnd usually in `viewWillDisappear`, you should call this method to avoid any side effects:\n\n```swift\noverride func viewWillDisappear(_ animated: Bool) {\n  super.viewWillDisappear(animated)\n  self.navigationController?.navigationBar.reset()\n}\n```\n\n- **Objective-c：**\n\nFirst, import this lib:\n\n```Objectivec\n#import \"UINavigationBar+Custom.h\"\n```\n\nThe category includes several methods that helps to change UINavigationBar's appearance dynamically\n\n```Objectivec\n- (void)zs_setBackgroundColor:(UIColor *)backgroundColor;\n- (void)zs_setTranslationY:(CGFloat)translationY;\n- (void)zs_reset;\n```\n\nAnd usually in `viewWillDisappear`, you should call this method to avoid any side effects:\n\n```Objectivec\n- (void)viewWillDisappear:(BOOL)animated {\n  [super viewWillDisappear:animated];\n  [self.navigationController.navigationBar zs_reset];\n}\n```\n\n## License\n\nZSNavigationBar is available under the MIT license. See the LICENSE file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkealdishx%2FZSNavigationBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkealdishx%2FZSNavigationBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkealdishx%2FZSNavigationBar/lists"}