FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

Allow the panel sheet to go above the upper position when it is in full state

Open engali94 opened this issue 3 years ago • 1 comments

Allow the panel sheet to go above the upper position when it is in the .full state

engali94 avatar Oct 06 '22 10:10 engali94

Allow the panel sheet to go above the upper position when it is in the .full state

We are able to allow this behavior without introducing a new API. See this code in Maps sample

https://github.com/scenee/FloatingPanel/blob/f9173161358b2d77ef70550dfd0c3f5014fbeafe/Examples/Maps/Maps/MainViewController.swift#L178-L184

It limits the most upper position of the panel to 6pt above the .full position. We can also customize the limitation and handle other positioned panel(top, left and right) along with user specific use cases.

See also here: https://github.com/scenee/FloatingPanel#specify-the-panel-moves-boundary

scenee avatar Oct 14 '22 10:10 scenee