-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
ios 11 jerky on trying to dismiss #42
Comments
I have been looking into this, but haven't been able to fix it yet. @vargarobert did you end up trying to fix this when you were looking at it? |
No. Sorry. Haven't tried to fix it.
I might end up building the functionality internally part of the app.
… On 16 Nov 2017, at 17:59, Chris Ricca ***@***.***> wrote:
I have been looking into this, but haven't been able to fix it yet. @vargarobert did you end up trying to fix this when you were looking at it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I think I might take a crack at it soon. I think it has something to do with safe zones. I have been seeing this a lot on my iPhoneX in testing and when I do the drag super slow it looks like when the animation starts dragging down the height of the object you are dragging gets shorter (specifically at the top on my device by the height of the safe zone above my top element constraint) causing the jerky feeling. At least that is what I am planning to look at as a possible cause. |
In my xp, this is to do with safe area layout guides, if I manually take safe area off and just put a larger constraint for the iPhone x it works. |
I found an (unanswered) bug related to this on StackOverflow. I am taking another crack at this but posting here for tracking purposes: https://stackoverflow.com/questions/47638767/ios-11-uinavigationbar-position-loses-status-bar-height-during-transition Also this Apple forum Post (login required?): https://forums.developer.apple.com/thread/93444 |
I'm not really sure how I would implement this as a fix in PullToDismiss, but if anyone else is looking to work around this: setting To deal with this, I wrapped the UINavigationController in a parent view controller, and added a view in that parent view controller that was the same color as my navigationBar. That way, when that slice of the UINavigationController would disappear, you don't see the presenting view behind the status bar suddenly appear. |
As far as I could investigate the 'jumpiness' is caused by two things when drag animation starts:
To solve the first issue I override the
To solve the navigationBar shrinking height problem, I've modified
To avoid triggering navBar shrinking, I made the drag animation move even more slowly in the beginning, I've changed value This could probably be fixed more elegantly but for now this is what works for me. |
There is an issue on ios11. The nav bar gets jerky when pulling to dismiss.
Can be seen in the demo as well.
The text was updated successfully, but these errors were encountered: