diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LazyBear/Views/Company/Insiders.swift	Sun May 23 19:00:00 2021 +0200
@@ -0,0 +1,30 @@
+//
+//  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")
+    }
+}