Comments (2)
This is on my todo list. Once I support auto layout constraints for subviews, then this should be easy to do.
@rabzu I want to elaborate a little on this. If you look at how the square cash app actually behaves, you'll see that as the scroll view stretches beyond the top, the header bar stretches and its content stays pinned at the bottom. This is currently not possible using BLKFlexibleHeightBar because there's no way to say "keep this view pinned to the bottom."
The core problem is that stretching the scroll view beyond the top is
- Unbounded (theoretically. but in practice there seems to be a limit to how far it will stretch)
- The scroll view is no longer changing its content offset in a linear way. Whatever physics code Apple is using under the hood for scroll view elasticity is completely changing how the content offset is changed.
With all of that said, auto layout is the answer. I could add an extra property that specifically says to pin a view to the bottom when the scroll view is stretched beyond the top, but then I'd be mimicking what auto layout already does ;)
from blkflexibleheightbar.
Currently No. the setter of progress will force it to 0.
- (void)setProgress:(CGFloat)progress
{
_progress = fmin(progress, 1.0);
if((self.behaviorDefiner && !self.behaviorDefiner.isElasticMaximumHeightAtTop) || !self.behaviorDefiner)
{
_progress = fmax(_progress, 0.0);
}
}
from blkflexibleheightbar.
Related Issues (20)
- support AutoLayout HOT 1
- ScrollView setContentOffset not working after setup BLKFlexibleHeightBar. HOT 1
- Fast swiping down cause flexibleHeader not take effect immediately
- Problems synchronising the bar with table view scrolling.
- does not work with swift ? HOT 3
- Broken indicator insets HOT 1
- problem with elasticMaximumHeightAtTop when I need a negative progress
- Something wrong with BLKFlexibleHeightBar when I put scrollView into it HOT 2
- Why use delegate rather than KVO contentOffset/contentSize?
- Usage inside NavigationViewController
- FacebookStyleBarBehaviorDefiner with pagination
- Carthage support
- issue with add subview my custom UIView can any one help me on this
- When I use BLKFlexibleHeightBar in a UIWebview, the webview can't display properly.
- Use library in tabbar?
- Bar overlaps with native status-bar on iPhone X
- How to change actual height (frame.height) of BLKFlexibleHeightBar?
- BLKFlexibleHeightBar
- Cash App
- CASH APP
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 blkflexibleheightbar.