52inc / Pulley

A library to imitate the iOS 10 Maps UI.
https://cocoapods.org/pods/Pulley
MIT License
2.02k stars 265 forks source link

[QUESTION] Update bounceOverflowMargin #420

Closed peterwarbo closed 2 years ago

peterwarbo commented 2 years ago

Is it possible to update bounceOverflowMargin somehow? Right now it's a let property.

My use case is that when I have only one supported position of the drawer; I don't want it to to bounce up and down when dragging it but if I change to allow more supported positions I would like to have the bounce behaviour.

peterwarbo commented 2 years ago
public var bounceOverflowMargin: CGFloat = 20.0 {
        didSet {
            if self.isViewLoaded
            {
                self.view.setNeedsLayout()
            }
        }
    }