diff LazyBear/Views/Profile/ProfileView.swift @ 377:d01859776fe6

ProfileView updated
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Wed, 21 Apr 2021 16:44:11 +0200
parents f3cb5bdea8e5
children 6802c2393203
line wrap: on
line diff
--- a/LazyBear/Views/Profile/ProfileView.swift	Wed Apr 21 16:43:57 2021 +0200
+++ b/LazyBear/Views/Profile/ProfileView.swift	Wed Apr 21 16:44:11 2021 +0200
@@ -7,26 +7,26 @@
 
 import SwiftUI
 
-//struct ProfileView: View {
-//    @ObservedObject var profile = Profile()
-//
-//    var body: some View {
-//        NavigationView {
-//            List {
-//                
-//
-//            }
-//            .navigationTitle("My profile")
-//            .navigationBarTitleDisplayMode(.inline)
-//            .onAppear {
-//                profile.request("https://api.lazybear.app/profile/init/symbols/aapl")
-//            }
-//        }
-//    }
-//}
-//
-//struct ProfileView_Previews: PreviewProvider {
-//    static var previews: some View {
-//        ProfileView()
-//    }
-//}
+struct ProfileView: View {
+    @ObservedObject var profile = Profile()
+
+    var body: some View {
+        NavigationView {
+            List {
+                
+
+            }
+            .navigationTitle("My profile")
+            .navigationBarTitleDisplayMode(.inline)
+            .onAppear {
+                profile.request("https://api.lazybear.app/profile/type=init/symbols=aapl,fb")
+            }
+        }
+    }
+}
+
+struct ProfileView_Previews: PreviewProvider {
+    static var previews: some View {
+        ProfileView()
+    }
+}