github scenee/FloatingPanel v1.3.1

latest releases: 2.8.6, 2.8.5, 2.8.4...
5 years ago

This release includes many bugfixes of layout problems on v1.3.0 💪
Please update v1.3.0 to this version.

NOTES

  • I recommend to clean the framework with '⌘ + Shift + K' & rebuild it. Xcode's new build system doesn't rebuild it automatically so that you could use the old binary of this library.

New API

FloatingPanelControllerDelegate

func floatingPanel(_ vc: FloatingPanelController, shouldRecognizeSimultaneouslyWith gestureRecognizer: UIGestureRecognizer) -> Bool

See also Issue #76 and this sample code, https://github.com/SCENEE/FloatingPanel/blob/v1.3.1/Examples/Samples/Sources/ViewController.swift#L284

Changes

Now the view hierarchy is as below.
(This is also written on 'View hierarchy' in README)

FloatingPanelController.view(FloatingPanelPassThroughView)
 ├─ .backdropView(FloatingPanelBackdropView)
 └─ .surfaceView(FloatingPanelSurfaceView)
          ├─ .contentView(FloatingPanelController.contentViewController.view)
          └─ .grabberHandle(GrabberHandleView)
  • Remove FloatingPanelSurfaceWrapperView.
  • Remove the content wrapper view in FloatingPanelSurfaceView
  • Modify the logic of the surface view's height using AutoLayout entirely

Bugfixes

  • Any gestures don't wait for FloatingPanelController.panGestureRecognizer #76, #88
    • Add new delegate method to customize the failure requirements and simultaneousness of FloatingPanelController.panGestureRecognizer
  • Fix a layout problem on SafeArea.Top on a navigation bar with search bar
  • Fix content offsets of a tracking scroll view
  • Fix intrinsic height
  • Fix layout on presentation modally
  • Fix UI freeze on the presentation modally from the second time
  • Fix bugs on iOS 10
  • Fix swizzling UIViewController.dismiss(animated:)

Improvements

  • Improve Samples app
    • Add "Settings" panel
    • Add "Reorder" button to show a sample to disable a panel's pan gesture

Don't miss a new FloatingPanel release

NewReleases is sending notifications on new releases.