view LazyBear/Tests/TestPullScroll.swift @ 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 05d1acc290ad
children
line wrap: on
line source

//
//  TestPullScroll.swift
//  LazyBear
//
//  Created by Dennis Concepción Martín on 28/2/21.
//

import SwiftUI

struct TestPullScroll: View {
    var body: some View {
        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")
    }
}

struct TestPullScroll_Previews: PreviewProvider {
    static var previews: some View {
        TestPullScroll()
    }
}