Closed mcg95 closed 3 years ago
I will investigate this issue.
You don't need to call the following codes after calling fpc.addPanel(toParent: self, belowView: stackView, animated: true)
because addPanel(toParent:)
does the same ones.
self.addChild(fpc)
fpc.show(animated: true, completion: {
self.fpc.didMove(toParent: self)
})
fpc.move(to: floatingPanelPosition, animated: true)
Short description
I have 2 floating panels in my VC. One only covers half the screen, while the other needs to take the complete screen. I will refer to the panels as such in the rest of the issue Half Screen Panel - Panel 1 Full Screen Panel - Panel 2 I am using an intrinsic layout, so that Panel 1 cannot be expanded completely. However, using the intrinsic layout, I am not able to cover the full screen using Panel 2.
Expected behavior
Open Panel 1 and it should not be able to be expanded more than the height set in the insetFor(position: FloatingPanelPosition). Open Panel 2 and it should be expanded to the height of the complete screen.
Actual behavior
Panel 1 works as required. Panel 2 does not show up at all, and if I set a height in insetFor(position: FloatingPanelPosition) function. It crashes. However, if I do not set it, it will be nil and the Panel does not slide up at all.
Steps to reproduce
Code example that reproduces the issue `
private func setupFloatingPanel(viewController: UIViewController, floatingPanelPosition: FloatingPanelPosition) {
} `
Environment
Library version 1.7.1 Installation method
iOS version(s) iOS 13 - iPhone 11 Simulator Xcode version 11.2.1