swift 中隐藏导航栏
Since everyone wants their app to look neat, attractive, and fascinating, non-standard UI elements and animations are becoming very popular. HidingNavigationBar is such a framework. It helps hide navigation tools while scrolling and unhide them when you stop.
由于每个人都希望他们的应用看起来整洁,吸引人并且引人入胜,因此非标准的UI元素和动画正变得非常流行。 HidingNavigationBar是这样的框架。 它有助于在滚动时隐藏导航工具,并在停止时取消隐藏它们。
In this article, I will explain how to use the framework and why it seems to be the best option to choose.
在本文中,我将解释如何使用该框架以及为什么它似乎是最佳选择。
开始吧 (Let’s Start)
According to the documentation:
根据文档 :
“HidingNavigationBar supports hiding/showing of the following view elements:
“ HidingNavigationBar支持隐藏/显示以下视图元素:
- UINavigationBar
-UINavigationBar
- UINavigationBar and an extension UIView
-UINavigationBar和扩展UIView
- UINavigationBar and a UIToolbar
-UINavigationBar和UIToolbar
- UINavigationBar and a UITabBar”
-UINavigationBar和UITabBar”
Note: HidingNavigationBar only works with UINavigationBars that have translucent set to true
.
注意:HidingNavigationBar仅适用于将半透明设置为 true
UINavigationBar 。
安装 (Installation)
Basically, there are two ways of installing HidingNavigationBar:
基本上,有两种安装HidingNavigationBar的方法:
With