Mercurial > public > lazybear
comparison LazyBear/Views/Profile/ProfileView.swift @ 375:f3cb5bdea8e5
Update Codable requests in HomeView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Wed, 21 Apr 2021 16:19:50 +0200 |
parents | d402bfa367c2 |
children | d01859776fe6 |
comparison
equal
deleted
inserted
replaced
374:d402bfa367c2 | 375:f3cb5bdea8e5 |
---|---|
5 // Created by Dennis Concepción Martín on 4/4/21. | 5 // Created by Dennis Concepción Martín on 4/4/21. |
6 // | 6 // |
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 struct ProfileView: View { | 10 //struct ProfileView: View { |
11 @ObservedObject var profile = Profile() | 11 // @ObservedObject var profile = Profile() |
12 | 12 // |
13 var body: some View { | 13 // var body: some View { |
14 NavigationView { | 14 // NavigationView { |
15 List { | 15 // List { |
16 | 16 // |
17 | 17 // |
18 } | 18 // } |
19 .navigationTitle("My profile") | 19 // .navigationTitle("My profile") |
20 .navigationBarTitleDisplayMode(.inline) | 20 // .navigationBarTitleDisplayMode(.inline) |
21 .onAppear { | 21 // .onAppear { |
22 profile.request("https://api.lazybear.app/profile/init/symbols/aapl") | 22 // profile.request("https://api.lazybear.app/profile/init/symbols/aapl") |
23 } | 23 // } |
24 } | 24 // } |
25 } | 25 // } |
26 } | 26 //} |
27 | 27 // |
28 struct ProfileView_Previews: PreviewProvider { | 28 //struct ProfileView_Previews: PreviewProvider { |
29 static var previews: some View { | 29 // static var previews: some View { |
30 ProfileView() | 30 // ProfileView() |
31 } | 31 // } |
32 } | 32 //} |