view LazyBear/Views/Company/Insiders.swift @ 403:48b3d2a410d4

Implementing Insiders.swift
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Sun, 23 May 2021 19:00:00 +0200
parents
children c804ce7a1560
line wrap: on
line source

//
//  Insiders.swift
//  LazyBear
//
//  Created by Dennis Concepción Martín on 23/5/21.
//

import SwiftUI

struct Insiders: View {
    @ObservedObject var company: Company
    var symbol: String
    
    var body: some View {
        if company.showInsidersView {
            
        } else {
            ProgressView()
                .onAppear {
                    // request API
                }
        }
    }
}

struct Insiders_Previews: PreviewProvider {
    static var previews: some View {
        Insiders(company: Company(), symbol: "aapl")
    }
}