Skip to content

Brand new VScrollStack and HScrollStack ❤️

Choose a tag to compare

@MihaelIsaev MihaelIsaev released this 10 Nov 03:02
· 299 commits to master since this release

Use VScrollStack and HScrollStack as simple as VStack and HStack but with scrolling!

It contains methods from both StackView and ScrollView.

body {
    VScrollStack {
        Text("Text on top")        
        View().height(400).color(.red)
        Text("Text 400px from top")
        View().height(400).color(.cyan)
        Text("Text ~800px from top")
        View().height(400).color(.purple)
        Text("Text at the bottom")
    }
    .edgesToSuperview()
    .spacing(16) // stackview method
    .hideAllIndicators() // scrollview method
}