scenee / FloatingPanel

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

Support docked bottom view #585

Closed kientux closed 1 year ago

kientux commented 1 year ago

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.

kientux commented 1 year ago

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