Skip to content

Scroll to top #11

@rebeloper

Description

@rebeloper

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions