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

Scroll to top #11

Open
rebeloper opened this issue Aug 28, 2019 · 0 comments
Open

Scroll to top #11

rebeloper opened this issue Aug 28, 2019 · 0 comments

Comments

@rebeloper
Copy link
Contributor

Hi,
I have some views stacked out in an UIView. This stack has the .scrolling(.vertical) modifier.

let scrollingContainerView = UIView()

...

stack(.vertical)(
            topContainerView.insetting(by: UIEdgeInsets(top: 0, left: 12, bottom: 0, right: 12)),
            middleContainerView.insetting(by: 12),
            bottomContainerView.insetting(by: UIEdgeInsets(top: 12, left: 0, bottom: 12, right: 0))
            ).scrolling(.vertical).fillingParent().layout(in: scrollingContainerView)

Is there a way to scroll the scrollingContainerView to top?

Thank you.

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

No branches or pull requests

1 participant