Jelly
Jelly copied to clipboard
How to use CoverPresentation to automatically size the presented view controller based on content?
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?