-
-
Notifications
You must be signed in to change notification settings - Fork 509
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
Weird behavior when scrolling fast. #579
Comments
This is because the size of the content view(= the visual effect view) depends on the most expanded(top most) size in |
Can you provide more details?) I noticed that it reproduces when absoluteInset = 0.0 for "full" anchor, if it is 1, everything is ok. |
hi, @mandaryn4k First, just try the following code, you can see the background color change of the let appearance = SurfaceAppearance()
appearance.backgroundColor = .red
surfaceView.appearance = appearance
The following code add a visual effect view, for example. let effect = UIBlurEffect(style: .prominent)
let effectView = UIVisualEffectView(effect: effect)
fpc.surfaceView.containerView.addSubview(effectView)
effectView.frame = fpc.surfaceView.containerView.bounds
effectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
I'm sorry I tied to reproduce your case with the Maps example code but I couldn't. The behavior didn't change by the absoluteOffset value. |
Description
The floating panel view seems not to be pinned to the bottom When selecting a cell and scrolling fast the bottom of the view controller will start to move vertically along with the scrollview.
Expected behavior
Actual behavior
Untitled.mp4
Steps to reproduce
Scrolling quickly on a UITableVIew
Code example that reproduces the issue
func fpcInstance(viewController: UIViewController, scrollView: UIScrollView?, initalPosition: FloatingPanelState) -> FloatingPanelController { let fpc = FloatingPanelController() fpc.contentMode = .static //.fitToBounds ///// static == The option to fix the content to keep the height of the top most position. //update content size fpc.delegate = fpcDelegate fpc.set(contentViewController: viewController) if let realScrollView = scrollView { fpc.track(scrollView: realScrollView) } fpc.surfaceView.backgroundColor = .clear fpc.isRemovalInteractionEnabled = false fpc.addPanel(toParent: self, animated: false) fpc.move(to: initalPosition, animated: false) fpc.setAppearanceForPhone() return fpc }
How do you display panel(s)?
Add as child view controllers and presented modally
How many panels do you displays?
2+
Environment
Library version
Installation method
import the actual swift files
iOS version(s)
iOS 15, 16
Xcode version
14.1, 14.2
The text was updated successfully, but these errors were encountered: