Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Update bounceOverflowMargin #420

Closed
peterwarbo opened this issue Nov 24, 2021 · 1 comment
Closed

[QUESTION] Update bounceOverflowMargin #420

peterwarbo opened this issue Nov 24, 2021 · 1 comment
Labels

Comments

@peterwarbo
Copy link

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
Copy link
Author

public var bounceOverflowMargin: CGFloat = 20.0 {
        didSet {
            if self.isViewLoaded
            {
                self.view.setNeedsLayout()
            }
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant