scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS
MIT License
5.59k stars 508 forks source link

Adapt FPC content to child VC content size #601

Closed artem-shmatkov closed 1 year ago

artem-shmatkov commented 1 year ago

Hi @scenee! Thanks for the library!

I just wanted to know if it's possible to combine different types of anchors in one layout (intrinsic, adaptive, common).

My use case: I need to be able to initially show child VC with dynamic collection view which could be small (and developer do not know the size beforehand), for example 200 pt height. And surface view should adapt to this height. But at the same time I should be able to swipe FPC to "half" and "full" states.

I tried to use different layouts but with no success. Hope you can help.