{"id":19467142,"url":"https://github.com/swordray/jxgradientnavigationbar","last_synced_at":"2025-04-25T11:30:52.226Z","repository":{"id":34821761,"uuid":"38809083","full_name":"swordray/JXGradientNavigationBar","owner":"swordray","description":"Custom UINavigationBar subclass with gradient colors on iOS.","archived":false,"fork":false,"pushed_at":"2022-01-30T06:19:18.000Z","size":132,"stargazers_count":18,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-19T12:47:58.853Z","etag":null,"topics":["ios","objective-c","uinavigationbar"],"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/swordray.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-07-09T08:46:24.000Z","updated_at":"2023-02-15T07:13:28.000Z","dependencies_parsed_at":"2022-09-12T21:14:07.818Z","dependency_job_id":null,"html_url":"https://github.com/swordray/JXGradientNavigationBar","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordray%2FJXGradientNavigationBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordray%2FJXGradientNavigationBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordray%2FJXGradientNavigationBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordray%2FJXGradientNavigationBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swordray","download_url":"https://codeload.github.com/swordray/JXGradientNavigationBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223997654,"owners_count":17238587,"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"],"created_at":"2024-11-10T18:33:36.103Z","updated_at":"2024-11-10T18:33:37.678Z","avatar_url":"https://github.com/swordray.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JXGradientNavigationBar\n\nCustom UINavigationBar subclass with gradient colors on iOS.\n\n[![Version](https://img.shields.io/cocoapods/v/JXGradientNavigationBar.svg?style=flat)](http://cocoapods.org/pods/JXGradientNavigationBar)\n[![License](https://img.shields.io/cocoapods/l/JXGradientNavigationBar.svg?style=flat)](http://cocoapods.org/pods/JXGradientNavigationBar)\n[![Platform](https://img.shields.io/cocoapods/p/JXGradientNavigationBar.svg?style=flat)](http://cocoapods.org/pods/JXGradientNavigationBar)\n\n## Screen Shot\n\n![Screen Shot](JXGradientNavigationBarExample/ScreenShot.png)\n\n## Requirements\n\n- iOS SDK 7.0 or later\n- [CocoaPods](http://cocoapods.org)\n\n## Installation\n\nAdd the following line to your Podfile:\n\n```ruby\npod \"JXGradientNavigationBar\"\n```\n\n## Usage\n\n1. Import the header file:\n\n  ```objective-c\n  #import \"JXGradientNavigationBar.h\"\n  ```\n\n2. Set the gradient colors using UIAppearance `barTintGradientColors` property:\n\n  ```objective-c\n  [JXGradientNavigationBar appearance].barTintGradientColors = @[[UIColor greenColor], [UIColor yellowColor]];\n  ```\n\n3. Customize your navigation controller:\n\n  ```objective-c\n  UINavigationController * navigationController = [[UINavigationController alloc] initWithNavigationBarClass:[JXGradientNavigationBar class] toolbarClass:nil];\n  ```\n\n## Example\n\n```objective-c\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n  [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];\n\n  [JXGradientNavigationBar appearance].barTintGradientColors = @[[UIColor greenColor], [UIColor yellowColor]];\n  [JXGradientNavigationBar appearance].shadowImage = [[UIImage alloc] init];\n  [JXGradientNavigationBar appearance].tintColor = [UIColor whiteColor];\n  [JXGradientNavigationBar appearance].titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor]};\n\n  UINavigationController * navigationController = [[UINavigationController alloc] initWithNavigationBarClass:[JXGradientNavigationBar class] toolbarClass:nil];\n  navigationController.navigationBar.translucent = YES;\n  navigationController.viewControllers = @[[[UIViewController alloc] init]];\n\n  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];\n  [self.window setRootViewController:navigationController];\n  [self.window makeKeyAndVisible];\n\n  return YES;\n}\n```\n\n## Sponsors\n\n* [BaiLu ShuYuan](https://bailushuyuan.org)\n\n## License\n\nCopyright © 2015 Jianqiu Xiao \u003cswordray@gmail.com\u003e under The [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswordray%2Fjxgradientnavigationbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswordray%2Fjxgradientnavigationbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswordray%2Fjxgradientnavigationbar/lists"}