Mercurial > public > lazybear
changeset 225:1c541670fee7
Test push refresh ScrollView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sun, 28 Feb 2021 18:10:12 +0000 |
parents | 7a159f0d5cf0 |
children | dac0c8a7d92d |
files | LazyBear/Tests/TestPullScroll.swift |
diffstat | 1 files changed, 18 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/LazyBear/Tests/TestPullScroll.swift Sun Feb 28 18:10:00 2021 +0000 +++ b/LazyBear/Tests/TestPullScroll.swift Sun Feb 28 18:10:12 2021 +0000 @@ -9,7 +9,24 @@ struct TestPullScroll: View { var body: some View { - Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) + NavigationView { + ScrollView { + ForEach((1...10), id: \.self) { + Text("Row \($0)") + Divider() + } + } + } + } + + func action() { + print("Action") + } +} + +struct Row: View { + var body: some View { + Text("Hello row") } }