This release has several improvements and behavior changes.
This also has changes to more consistently control scroll offset of its tracking scroll view.
Behavior changes
- Calls the
floatingPanelDidMove
delegate method at the end of the move interaction. - Calls the
floatingPanelDidEndDragging
delegate method afterFloatingPanelController.state
changes whenwillAttract
isfalse
. - Sets
isAttracting
totrue
even when moving between states byFloatingPanelController.move(to:animated:completion)
except for moves from/to.hidden
. - Do not reset the scroll offset of its tracking scroll view when a user moves a panel outside its scroll view or on the navigation bar above it.
Improvements
- Added
FloatingPanelPanGestureRecognizer.delegateOrigin
to allow to access the default delegate implementations (It's useful when usingdelegateProxy
).
Bugfixes
- Retains scroll view position while moving between states (#587)
- Fixed invalid scroll offsets after moving between states
- Calls
floatingPanelWillRemove
delegate method when a panel is removed from a window
Thank you to @fawzirifai for this release!
The API document: https://floatingpanel.github.io/2.7.0/documentation/floatingpanel/
Full Changelog: https://github.com/scenee/FloatingPanel/compare/2.6.6…2.7.0