SPStorkController
SPStorkController copied to clipboard
iOS 14 bug : swiping down the sheet do not pull down the sheet
Bug:
When you swipe down the view, it do not pull down gradually the sheet. When you swipe down enough it will close it suddenly. It was working great before and the bug appear only on iOS 14.
Code used :
`
let transitionDelegate = SPStorkTransitioningDelegate()
transitionDelegate.storkDelegate = navController
transitionDelegate.customHeight = viewController.panelHeight
transitionDelegate.confirmDelegate = navController
navController.transitioningDelegate = transitionDelegate
navController.modalPresentationStyle = .custom
self.topNavigationController().present(navController, animated: true, completion: nil)`
У меня аналогичная проблема в iOS 14. Будет ли исправление данного бага?
the same
I can confirm this is also happening for me on ios 14. For me, the scroll view itself seems to be "stuck". Scrolling up does not scroll the view anymore.
It's also happening to me, you can only see the indicator that it's moving and the opacity behind the screen is being reduced. It just dimissess the view controller if dragged down enough.
If you guys have the luxury to target iOS 13, I recommend just rolling with the native modal. It was a painless switch.
@jhk115 agree
@jhk115 I agree, and for most of the part I believe we all do that. But @ivanvorobei has done an amazing job with possibilities for height customization, close button, indicator, etc. which makes us prefer to use this library.
It's also happening to me only on iOS 14, solved my problem after setting it
if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never
} else {
automaticallyAdjustsScrollViewInsets = false
}
This is happening because SPStorkPresentationController
containerViewWillLayoutSubviews
is setting the presented view controller's frame to frameOfPresentedViewInContainerView
when pan gesture changed.
@ivanvorobei Any updates?
This is happening because
SPStorkPresentationController
containerViewWillLayoutSubviews
is setting the presented view controller's frame toframeOfPresentedViewInContainerView
when pan gesture changed.
Comment out these few lines fixes the problem. @tibo9 Did you find any side effects doing so? Thanks in advance.