Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ homeHandle.accessoryViewEdgeInsets = UIEdgeInsets(top: 2, left: 4, bottom: 4, ri
colorPicker.addHandle(homeHandle)
```

#### Using in a Modal Presentation
If you are attempting to use this control in a modally presented view controller in iOS 13+, the built in swipe to dismiss behavior will interfere with this control.

To fix this, you have to add the following to the view controller's `viewDidAppear`
```Swift
presentationController?.presentedView?.gestureRecognizers?[0].isEnabled = false
```
Setting the [`isModalInPresentation` property](https://developer.apple.com/documentation/uikit/uiviewcontroller/3229894-ismodalinpresentation) will not fix the incorrect behavior.

## Installation
### Carthage
```bash
Expand Down