-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
[Bug/Feature Request] Increase priority of Layout.interactionConstraint #424
Comments
Thank you for your request. I agree that its priority will be set to |
I've updated the priority to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have the requirement that my floating panel always displays a button at the bottom of the sheet. If the panel size is increased (dragged up) the button should stay at the bottom of the screen.
To achieve this I'm using
fpc.contentMode = .fitToBounds
to fit the content of my custom ViewController to the size of the panel.However with
fitToBounds
it prevents my panel from being dragged out of the screen in the bottom direction.I found out that the reason for this is the priority of
Layout.interactionConstraint
which is set to.defaultHigh
. If the priority is set to.required
everything works as expected.Unfortunately the constraint is not accessible from outside the framework and thus its not easy to change the priority.
It would be good to change the priority to
.required
for default or at least make it configurable.Expected behavior
I can drag the panel in bottom direction even if
.fitToBounds
is enabledActual behavior
The priority of
interactionConstraint
is too low so that the VCs intrinsic height blocks the panel from being dragged in bottom directionThe text was updated successfully, but these errors were encountered: