Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
l1Dan committed Dec 27, 2023
1 parent 14cca96 commit 28652b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public extension View {
/// .padding()
/// .useNXNavigationView(onTransitionViewController: { action in
/// switch action {
/// case .clickBackButton, .clickBackButtonMenu, .callingNXPopMethod, .popGestureRecognizer:
/// case .clickBackButton, .clickBackButtonMenu, .callingNXPopMethod, .interactionGesture:
/// /// Do something...
/// return false
/// default:
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

🔥 NXNavigationExtension 是为 UINavigationBar 设计的轻量级的、简单的、可扩展的库,支持 SwiftUI 和 UIKit。框架对现有代码入侵非常小,只需要简单的几个方法调用就可以满足大部分的应用场景。可能是最省心的 iOS 导航栏处理框架之一。NXNavigationExtension 框架本身和示例代码都已经适配暗黑模式可供大家参考。

## 介绍太长不看系列
### 🎯 解决导航栏存在的多个痛点
1. 解决导航栏背景修改不方便问题。
2. 解决操作不当导致导航栏错乱问题。
3. 解决导航栏显示、隐藏时页面之间过渡动画有割裂感、不流畅问题。
4. 解决点击返回按钮事件无法拦截、手势滑动返回事件无法拦截问题。

## 🎉 预览

[1]: https://raw.githubusercontent.com/l1Dan/NXNavigationExtension/main/Snapshots/Preview1.gif
Expand Down Expand Up @@ -484,12 +491,6 @@ override var nx_useSystemBackButton: Bool {
![BackButtonMenu](https://raw.githubusercontent.com/l1Dan/NXNavigationExtension/main/Snapshots/BackButtonMenu.png)


## ❤️ 感谢 [JetBrains](https://jb.gg/OpenSourceSupport) 对开源项目的支持

<p align="left" >
<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" alt="jb_beam" title="jb_beam" width="200px">
</p>

## ⭐️ 参考链接

- [QMUI_iOS](https://github.com/Tencent/QMUI_iOS)
Expand Down

0 comments on commit 28652b8

Please sign in to comment.