Comments (5)
@koenbud Off the top of my head, we can check in the scrollViewDidScroll:
method if the scrollView is not dragging/tracking nor decelerating, that's a probably a programatic offset.
The problem with this, tho, is when you tap on the status bar. I would assume that is programatic from within the framework, and we do want to update the TLYShyNavBar
..
Your solutions might be the only way, to add a freeze state... Or, even better, can you please try setting the contraction/expansion resistance to INFINITY
? That should "freeze" the ShyNavBar. If that works, you can submit a PR with a new property called freeze
that caches the resistance values in internal variables, and restores them when freeze is set to false. Just probably make sure if the user calls shyNavBarManager.freeze = YES
twice, you don't cache the INFINITY
value.
Of course, general code style conformation, docs, and testing is highly appreciated!
Let me know if I can help.
from tlyshynavbar.
Awesome, thanks for the quick reply. I'll try to take a look in the next couple of days.
from tlyshynavbar.
@Mazyod the status bar tap comes to the delegate via -scrollViewShouldScrollToTop:
and -scrollViewDidScrollToTop:
so it shouldn't be an issue to temporarily freeze the ShyNavBar. (Just make sure to take the subsequent scrollview delegate's response to -...ShouldScrollToTop:
into account first!)
from tlyshynavbar.
@nolanw Interesting point, thanks! Yup, that solves the tapping on statusbar issue.
I think I'll give it a shot!
from tlyshynavbar.
I think this was resolved by introducing the disabled
property on the manager.
from tlyshynavbar.
Related Issues (20)
- Not hide nav hide text only
- Navigation bar corrupted (can recreate in TLYShyNavBarDemo)
- Issue when adding/removing navigationItems while navigation bar is contracted
- Fade the entire navbar can not work when use tableview
- the code works not well in pageViewcontroller HOT 1
- Multiple extensionViews
- bug HOT 1
- Nav Bar gets stuck midway through transition state when using the interactivePopGestureRecognizer HOT 2
- When I click on the status bar twice, the effect is different.
- Statusbar is gone / get "overlapped" HOT 4
- TLYShyNavBar not working, UITabBarController HOT 1
- -[UIViewController tly_swizzledViewWillAppear:]: unrecognized selector sent to instance 0x10355e750
- Cannot work on iPhone X. HOT 5
- iOS 11 Large gap above scroll view HOT 6
- iOS 11 Fade no longer works HOT 4
- Is there no way to have navBar in the same state it was it when a view controller was pushed to it?
- Hiding/Expanding navigationbar is not working on ios 11 with xcode 9
- Failed to Render and update auto layout status for MYViewController HOT 1
- Support for iOS 12 and Xcode 10 beta HOT 1
- Extra distance between UINavigationBar and ExtensionView after a rotation. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tlyshynavbar.