Description
While using an intrinsic layout (IntrinsicPanelLayout see below) I would like to update the content inside the view, which can mean a change in height. Is it possible to tell the layout adaptor to recalculate its constraints based off the content's new height. I've tried fpc.invalidateLayout() after setting up the new constraints, but the height of the fpc remains the same.
class IntrinsicPanelLayout: FloatingPanelBottomLayout {
override var initialState: FloatingPanelState { .full }
override var anchors: [FloatingPanelState: FloatingPanelLayoutAnchoring] {
[
.full: FloatingPanelIntrinsicLayoutAnchor(absoluteOffset: 0.0, referenceGuide: .safeArea)
]
}
}
Thanks 🙏
How do you display panel(s)?
How many panels do you displays?
Environment
Library version
2.3.0
Installation method
iOS version(s)
14.0
Xcode version
12.4
Description
While using an intrinsic layout (IntrinsicPanelLayout see below) I would like to update the content inside the view, which can mean a change in height. Is it possible to tell the layout adaptor to recalculate its constraints based off the content's new height. I've tried
fpc.invalidateLayout()after setting up the new constraints, but the height of the fpc remains the same.Thanks 🙏
How do you display panel(s)?
How many panels do you displays?
Environment
Library version
2.3.0
Installation method
iOS version(s)
14.0
Xcode version
12.4