scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support docked bottom view

kientux opened this issue · comments

Is there anyway to support this Stocks behaviour like in the sample app, but with the bottom "Yahoo!" view inside the panel itself?

Simulator Screen Recording - iPhone 14 Pro - 2023-04-09 at 23 51 08

If I added a view at bottom of the content view, it will only be visible in full state.

Simulator Screen Recording - iPhone 14 Pro - 2023-04-09 at 23 56 59

It seems that FloatingPanel calculates view size only for highest anchor? If I use single anchor then it works just fine.

What a shame, literally just 5 mins after posting the question, I figured out that FloatingPanelController.contentMode = .fitToBounds will work exactly like this 🤦