Skip to content

NavigationBar automatically hides when scrolling, same as twitter.

License

Notifications You must be signed in to change notification settings

Talon2333/STNavigationBarAutoHide

Repository files navigation

STNavigationBarAutoHide

CI Status Version License Platform

NavigationBar automatically hides when scrolling, same as twitter.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

DemoHomeVC DemoNextVC

Requirements

This library requires iOS 13.0+ and Xcode 13.0+.

Installation

STNavigationBarAutoHide is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'STNavigationBarAutoHide'

Usage

How to use?

Just need to configure scrollview in your controller.

[self st_navigationBarAutoHideConfigureScrollView:yourScrollView];

AutoHideEnabled

Whether auto-hide is available.

- (BOOL)st_navigationBarAutoHideEnabled;

- (void)st_setNavigationBarAutoHideEnabled:(BOOL)navigationBarAutoHideEnabled;

Author

talon, [email protected]

Feedback

If you are having problem, post to the Issue or email me. Also if this project helped you, please give me a star.

License

STNavigationBarAutoHide is available under the MIT license. See the LICENSE file for more info.