{"id":32316342,"url":"https://github.com/forterli/flnavigationbar","last_synced_at":"2025-10-23T11:00:11.912Z","repository":{"id":56910602,"uuid":"203529038","full_name":"ForterLi/FLNavigationBar","owner":"ForterLi","description":"一个用来统一管理导航栏转场以及当 push 或者 pop 的时候使动画效果更加顺滑的通用库，并且同时支持竖屏和横屏。能应对复杂的场景变化，又兼顾原生NavigationBar的使用习惯 https://juejin.im/post/5e8d8db36fb9a03c5d5c7f27","archived":false,"fork":false,"pushed_at":"2023-06-06T14:35:34.000Z","size":92,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T11:00:00.162Z","etag":null,"topics":["ios","ios-app","ios-swift","navigationbar","navigationbar-transition","objective-c","swift"],"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/ForterLi.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,"governance":null}},"created_at":"2019-08-21T07:18:52.000Z","updated_at":"2025-10-14T09:51:10.000Z","dependencies_parsed_at":"2022-08-20T20:20:34.577Z","dependency_job_id":"8f237c3b-d94d-441c-bc27-870b76b493cf","html_url":"https://github.com/ForterLi/FLNavigationBar","commit_stats":{"total_commits":39,"total_committers":3,"mean_commits":13.0,"dds":0.5128205128205128,"last_synced_commit":"f8a3d6b1578d476f7f79236c4fbe4579d322b07e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ForterLi/FLNavigationBar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForterLi%2FFLNavigationBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForterLi%2FFLNavigationBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForterLi%2FFLNavigationBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForterLi%2FFLNavigationBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ForterLi","download_url":"https://codeload.github.com/ForterLi/FLNavigationBar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForterLi%2FFLNavigationBar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280606609,"owners_count":26359387,"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-10-23T02:00:06.710Z","response_time":142,"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":["ios","ios-app","ios-swift","navigationbar","navigationbar-transition","objective-c","swift"],"created_at":"2025-10-23T11:00:09.558Z","updated_at":"2025-10-23T11:00:11.904Z","avatar_url":"https://github.com/ForterLi.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FLNavigationBar\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/ForterLi/FLNavigationBar\"\u003e\u003cimg src=\"https://img.shields.io/badge/platform-iOS%208.0%2B-ff69b5152950834.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/ForterLi/FLNavigationBar\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/v/FLNavigationBar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/ForterLi/FLNavigationBar/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-green.svg?style=flat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n一个用来统一管理导航栏转场以及当 push 或者 pop 的时候使动画效果更加顺滑的通用库，并且同时支持竖屏和横屏。能应对复杂的场景变化，又兼顾原生NavigationBar的使用习惯\n\n## 效果图\n| Feature |Demo||\n|---|---|---|\n|Color -\u003e Color|![](https://github.com/ForterLi/ProjectResource/blob/master/FLNavigationBar/Screenshots/0000001.gif)|![](http://imgqn.koudaitong.com/upload_files/2015/05/19/143203733929082129.jpg)|\n|Alone Bar -\u003e Alone Bar|![](https://github.com/ForterLi/ProjectResource/blob/master/FLNavigationBar/Screenshots/0000002.gif)||\n|Color -\u003e Image Bar|![](https://github.com/ForterLi/ProjectResource/blob/master/FLNavigationBar/Screenshots/0000003.gif)||\n|Hidden -\u003e BlurEffectStyleLight|![](https://github.com/ForterLi/ProjectResource/blob/master/FLNavigationBar/Screenshots/0000004.gif)||\n\n\n## 介绍\n\n本库的设计理念是使用者只用关心当前 view controller 导航栏的背景样式\n在当前 view controller的 UINavigationItem 中配置页面导航栏样式\n\n## 使用说明\n导航栏样式\n```objc\ntypedef NS_ENUM(NSInteger, FLBarStyle) {\n    FLBarStyleNone = 0,               // 公共样式\n    FLBarStyleDefault = 0xff,         // 默认毛玻璃效果\n    FLBarStyleColor,                  // 颜色\n    FLBarStyleTransparent,            // 透明\n    FLBarStyleHidden,                 // 隐藏\n    FLBarStyleTranslucent,            // 毛玻璃效果可以修改样式\n};\n\ntypedef NS_ENUM(NSInteger, FLBlurEffectStyle) {\n    FLBlurEffectStyleNone = 0,\n    FLBlurEffectStyleExtraLight,\n    FLBlurEffectStyleLight,\n    FLBlurEffectStyleDark,\n    FLBlurEffectStyleRegular API_AVAILABLE(ios(10.0)),\n    FLBlurEffectStyleProminent API_AVAILABLE(ios(10.0)),\n};\n```\n\n推荐在navigation conreoller 中配置导航栏默认样式，如果不配置默认默认为 FLBarStyleDefault 半透明样式\n``` swift\n    override func loadView() {\n        super.loadView()\n        self.barStyle = .color\n        self.barBackgroundColor = UIColor.white\n        self.barLineColor = UIColor.white\n        self.barStyleUpdate()\n    }\n```\n在每一个view controller 中配置单独配置每个页面的样式\n```swift\n    // MARK: - Life Cycle\n    override func loadView() {\n        super.loadView()\n        self.navigationItem.yq_barStyle = .color\n        self.navigationItem.yq_barLineColor = .red\n        self.navigationItem.yq_barBackgroundColor = .yellow\n    }\n```\n\n每一个view controller单独配置页面独有的 NavigationBar\n```swift \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        addAloneBarNavigationBar()\n    }\n    \n    override func viewDidLayoutSubviews() {\n        aloneBarViewDidLayoutSubviews()\n    }\n```\n```swift\n    // 当前Alone bar 与 UINavigationBar 一样，无法使用yq_barStyle、yq_barLineColor、yq_barBackgroundColor等扩展属性\n    self.alone_barNavigationBar\n    // 等价 self.navigationItem\n    self.alone_navigationItem\n```\nCustom NavigationController \n```swift\nclass FLCustomNavigationController : UINavigationController,UINavigationControllerDelegate {\n    override func loadView() {\n        super.loadView()\n        self.delegate = self\n    }\n    \n    func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {\n        self.startBar()\n    }\n    \n    func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {\n        self.endBar(viewController)\n    }\n}\n```\n## 安装\n\n### CocoaPods\n\n你可以用以下命令来安装最新版的 CocoaPods：\n\n```bash\n$ gem install cocoapods\n```\n\n在 `podfile` 中添加以下代码：\n\n```ruby\npod 'FLNavigationBar'\n```\n\n然后在终端运行以下命令：\n\n```bash\n$ pod install\n```\n## 基本要求\n\n- iOS 8.0+\n\n## 许可证\n\nFLNavigationBar 是基于 MIT 许可证下发布的，详情请参见 LICENSE。\n\n## 更新\n* ViewController 单独控制侧滑 全屏侧滑 pop\n* 兼容 `Large Mode` \n* 兼容 `prompt title`\n* 适配 iOS 13  dark 模式\n* 优化导航栏左右item间距的处理\n\n## 联系方式\n* forterli@163.com\n* QQ群：1077108071\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforterli%2Fflnavigationbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforterli%2Fflnavigationbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforterli%2Fflnavigationbar/lists"}