-
Notifications
You must be signed in to change notification settings - Fork 206
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
Broken in XCode 9 + iOS 11 #76
Comments
Okay. I did some testing. I made it work by first of all implementing #75. Then I created a var to hold the height of the navigation and status bar:
Initially 0 to make it possible to just enable my "fix" by setting:
This way it works on both iPhone X and all the other ones, since the new iPhone has a different status bar. I then use this variable here, adding it to the value of self.scrollViewDefaultInsets (which are 0):
And here, the same logic:
Because it seems the ContentInsets are always 0 when used inside a UITableViewController. Note that I still do:
To make it work. If anyone has any idea how to properly implement this solution feel free to pitch in! I created a pull request that implements these changes and does so without breaking anything else: #77 It works on both iOS 11 and 10. |
@nickdnk Hi! Thank for your report. Starting from iOS 11 |
Hey @SerjOxo I'll have a look at those news properties you mentioned and see if I can get it to work. |
I cannot get 3.0 to work at all. Did you try to use it with a UITableViewController? |
Hello Still doesn't work inside UITableViewController on 3.0.2. Any news on this problem? I don't know what information you need from me to fix it (if you want to or can at all). Let me know. |
Hi @nickdnk! Does it work correctly on the recent version? |
Hello It still does not work as expected. I now suffer from #124. Again on a UITableViewController subclass. |
Report
After updating XCode to 9.x this library seems to be broken. I add a .top refresher and experience the progress let starting at 0.6 when you reach the top of the scroll view and start pulling. Aside from that it is buggy in general when pulling down and releasing. The content insets no longer match when it returns to a normal state.
I should mention this is with a Custom Animation, not the default one, so the demo project still seems to work. Also it's within a UITableViewController, not a UIViewController with a UITableView inside it as in the demo project.
I previously submitted a bug report where I manage to fix some of this weird behaviour with automaticallyAdjustsScrollViewInsets and contentInsets, but it doesn't work anymore. I think Apple may have changed some logic with UIEdgeInsets for UITableViewControllers. I can't really make it work and I'm stuck. Currently my top inset logs out as 0 even though it's clearly 64 (height of navigation bar). I think this messes with all the calculations the library does.
Your Environment
pod env | pbcopy
and insert here:Stack
Installation Source
Plugins
Podfile
Project that demonstrates the bug
I can't. I don't have anything that's open source.
The text was updated successfully, but these errors were encountered: