Compare commits
1 Commits
3dc36d98c1
...
e57e6b9e22
Author | SHA1 | Date |
---|---|---|
Shadowfacts | e57e6b9e22 |
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue