-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot pull to refresh if contentSize is smaller than frame #141
Comments
If the height of the content is less than the height of the screen(or tableView), set contentSize for tableView equal height of the screen. |
FWIW, I ran into this same (or at least a similar) problem. I had a |
@hsoi can you give an example of what you did please? I have the same problem and tried the following, to no avail:
|
I did exactly what I wrote in my comment, which is essentially the same thing you're doing except I was working on a pure |
I ended up subclassing UICollectionViewFlowLayout and overriding the collectionViewContentSize method |
var alwaysBounceVertical: Bool { get set } If this property is set to true and bounces is true, vertical dragging is allowed even if the content is smaller than the bounds of the scroll view. The default value is false. |
I tried to set alwaysBounceVertical=YES, but I found that if infiniteScrolling is added at the same time, then both of them will show and animate
The text was updated successfully, but these errors were encountered: