Compare commits

..

1 Commits

Author SHA1 Message Date
Shadowfacts e57e6b9e22
Fix detent snapping 2019-09-24 11:19:54 -04:00
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ public class SheetContainerViewController: UIViewController {
let translation = recognizer.translation(in: content.view)
var realOffset = initialConstant + translation.y
if realOffset < sortedDetentOffsets.first! {
print("should change")
func clamp(_ value: CGFloat, from: CGFloat, to: CGFloat) -> CGFloat {
if value < from {
return from