Skip to content

v1.6.0: Enhanced FloatingPanelSurfaceView

Compare
Choose a tag to compare
@scenee scenee released this 03 Jun 13:23
· 505 commits to master since this release

New features

FloatingPanelSurface

Add new excellent APIs by @nderkach and @SvenTiigi to make the layout flexible

  • Customize the grabber layout
+ public var grabberTopPadding: CGFloat
+ public var grabberHandleWidth: CGFloat
+ public var grabberHandleHeight: CGFloat
  • Customize the container top inset.
+ public var containerTopInset: CGFloat
  • Customize a content layout from the container.
+ public var contentInsets: UIEdgeInsets

FloatingPanelBehavior

  • Add rubber band effect for top and bottom edge
+ func allowsRubberBanding(for edge: UIRectEdge) -> Bool

Changes

FloatingPanelSurface

  • Replace some properties as a constant stored property
-    public var grabberHandle: GrabberHandleView!
+    public let grabberHandle: GrabberHandleView = GrabberHandleView()
-    public var containerView: UIView!
+    public let containerView: UIView = UIView()
  • Modify containerView.layer.masksToBounds behavior on cornerRadius changed. See here more detail.

Improvements

  • Add some unit tests on iOS 10, 11 and 12 in CI.

Bugfixes

  • Calling FloatingPanel.move(to:animated:completion:) locks scroll view #198
  • Weird crashes happen when FloatingPanel was updated from v1.4.1 to 1.5.x #206
  • A UIVisualEffectView in a content VC isn't working on iOS10

Thank you to @nderkach and @SvenTiigi for your proposal and PR!
Thank you to @mattt, @Isuru-Nanayakkara and @mergesort for your helpful issues and cooperations!