Skip to content

Commit

Permalink
Update README for the backdrop tap-to-dismiss action
Browse files Browse the repository at this point in the history
  • Loading branch information
scenee committed May 28, 2021
1 parent 43c7e8c commit 895790f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The new interface displays the related contents and utilities in parallel as a u
- [Create an additional floating panel for a detail](#create-an-additional-floating-panel-for-a-detail)
- [Move a position with an animation](#move-a-position-with-an-animation)
- [Work your contents together with a floating panel behavior](#work-your-contents-together-with-a-floating-panel-behavior)
- [Enabling the tap-to-dismiss action of the backdrop view](#enabling-the-tap-to-dismiss-action-of-the-backdrop-view)
- [Notes](#notes)
- ['Show' or 'Show Detail' Segues from `FloatingPanelController`'s content view controller](#show-or-show-detail-segues-from-floatingpanelcontrollers-content-view-controller)
- [UISearchController issue](#uisearchcontroller-issue)
Expand Down Expand Up @@ -658,6 +659,14 @@ class ViewController: UIViewController, FloatingPanelControllerDelegate {
}
```

### Enabling the tap-to-dismiss action of the backdrop view

The tap-to-dismiss action is disabled by default. So it needs to be enabled as below.

```swift
fpc.backdropView.dismissalTapGestureRecognizer.isEnabled = true
```

## Notes

### 'Show' or 'Show Detail' Segues from `FloatingPanelController`'s content view controller
Expand Down

0 comments on commit 895790f

Please sign in to comment.