-
-
Notifications
You must be signed in to change notification settings - Fork 531
Closed
Description
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)?
- Present modally
How many panels do you displays?
- 1
Environment
Library version
2.3.0
Installation method
- CocoaPods
iOS version(s)
14.0
Xcode version
12.4
scenee
Metadata
Metadata
Assignees
Labels
No labels