diff LazyBearWatchOS Extension/Views/Home/LatestNewsView.swift @ 454:c79a3ed3d230

StockView for WatchOS implemented
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sun, 27 Jun 2021 20:55:05 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LazyBearWatchOS Extension/Views/Home/LatestNewsView.swift	Sun Jun 27 20:55:05 2021 +0200
@@ -0,0 +1,24 @@
+//
+//  LatestNewsView.swift
+//  LazyBearWatchOS Extension
+//
+//  Created by Dennis Concepción Martín on 27/06/2021.
+//
+
+import SwiftUI
+
+struct LatestNewsView: View {
+    var symbol: String
+    var name: String
+    @ObservedObject var company: Company
+    
+    var body: some View {
+        Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
+    }
+}
+
+struct LatestNewsView_Previews: PreviewProvider {
+    static var previews: some View {
+        LatestNewsView(symbol: "AAPL", name: "Apple Inc", company: Company())
+    }
+}