Skip to content

v1.1.0

Compare
Choose a tag to compare
@scenee scenee released this 28 Oct 00:01
· 849 commits to master since this release

I've released v1.1.0 to have many bugfixes and improvements. Thank you for your report and contributions!

Please note that FloatingPanelLayout and FloatingPanelBehavior protocols have some backwards incompatible changes. But their changes were only applied for their optional methods so I didn't change the major version.

I would like to enhance this UI component with you. Welcome to your report and PR.

New APIs

  • FloatingPanelController.panGestureRecognizer.

API Changes

FloatingPanelLayout

  • Add FloatingPanelLayout default implementations of supportedPositions and prepareLayout(surfaceView:in:) for a common case.
  • Change supportedPosition type from Array to Set.
- var supportedPositions: [FloatingPanelPosition]
+ var supportedPositions: Set<FloatingPanelPosition>
  • Add FloatingPanelLayout consistence check.
  • Change the default landscape layout to fix #3.

FloatingPanelBehavior

  • Modify and Improve FloatingPanelBehavior protocol to be more clear.
- func presentAnimator(_ fpc: FloatingPanelController, from: FloatingPanelPosition, to: FloatingPanelPosition) -> UIViewPropertyAnimator 
+ func addAnimator(_ fpc: FloatingPanelController, to: FloatingPanelPosition) -> UIViewPropertyAnimator 

-  func dismissAnimator(_ fpc: FloatingPanelController, from: FloatingPanelPosition) -> UIViewPropertyAnimator
+ func removeAnimator(_ fpc: FloatingPanelController, from: FloatingPanelPosition) -> UIViewPropertyAnimator

+ func moveAnimator(_ fpc: FloatingPanelController, from: FloatingPanelPosition, to: FloatingPanelPosition) -> UIViewPropertyAnimator

Bugfixes

  • The child view controller of FloatingPanelController uses the bottom of safe layout guide expectedly.
  • Fix a critical bug on full and half anchor positions only.
  • Fix bugs of FloatingPanelLayout.{topInteractionBuffer,bottomInteractionBuffer}.
  • Fix failure requirements of the pan gesture #12.
  • Fix a Examples/Maps layout issue #1.
  • Fix errors in doc comments and README by PR #11 of @futuretap PR #11 and PR #16 of @0xflotus . Thank you!

Improvements

  • Improve the shadow layer of FloatingPanelSurfaceView.
  • Update Samples.app.
    • 2 floating panels in Tab bar
    • A nested scroll view sample
    • Touch gestures in a detail panel
  • Update README.
    • Add shields/TOC/Notes.
    • Update Usage to resolve common questions.

Misc

  • Support Travis CI.