v1.6.0: Enhanced FloatingPanelSurfaceView
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 oncornerRadius
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!