antoniocasero / Panels

Panels is a framework to easily add sliding panels to your application
MIT License
1.5k stars 89 forks source link

Example app crashes if you tap "Close" twice #3

Closed julianschiavo closed 5 years ago

julianschiavo commented 5 years ago

The example app crashes while unwrapping an optional if you open the "Material" example, then open the panel and tap Close a few times.

movePanel(value:keyboard:completion:)

panelHeightConstraint!.constant = value
Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value
antoniocasero commented 5 years ago

Thank you again @justJS

julianschiavo commented 5 years ago

No problem 👍