PullToDismiss icon indicating copy to clipboard operation
PullToDismiss copied to clipboard

[bug] Status-bar-hiding avoiding code doesn't work consistently

Open benguild opened this issue 7 years ago • 1 comments

This doesn't always work: https://github.com/sgr-ksmt/PullToDismiss/blob/master/Sources/PullToDismiss.swift#L173-L175

Example: if you drag a UINavigationController with a UIViewController that has a UIScrollView in it, upward (into negative space) before dragging it downward, it may skip over the detection range of 0 -> 0.5 that's prescribed here, and the status bar is hidden on that view.

Depending on what you're doing, this is an oversight.

benguild avatar May 31 '18 07:05 benguild

Honestly, now that I've looked into a bit more about how this works, it really makes more sense to just use UIViewControllerAnimatedTransitioning instead, as it's very lightweight... and avoids this kind of status bar jumpiness.

I may share a Gist later on with a demo in Swift 4.1: https://gist.github.com/benguild

benguild avatar Jun 01 '18 06:06 benguild