Skip to content
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

How to use CoverPresentation to automatically size the presented view controller based on content? #85

Open
StainlessStlRat opened this issue Mar 21, 2024 · 0 comments

Comments

@StainlessStlRat
Copy link

Hello!

I have been using your wonderful library for many years now, but I am at a loss at to how to implement this properly.

I want to present a view controller that only takes up as much space as its view needs. The way I've been achieving this feels pretty dirty; calculating the expected height of the view and incorporating that value into the marginGuards.

This works well enough, but now I've got a view that is too complex to calculate based whose root view is a stack view whose children views have been arranged programmatically.

How can I let Jelly calculate the required minimal presentation size, if possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant