Mercurial > public > lazybear
comparison LazyBear/Views/Search/CompanyList.swift @ 438:7f2a24a774eb
Implement CompanyView networking
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 20 Jun 2021 13:20:19 +0200 |
parents | c78d5b5b3bda |
children | ffbb1dbab531 |
comparison
equal
deleted
inserted
replaced
437:5ca468751db2 | 438:7f2a24a774eb |
---|---|
10 struct CompanyList: View { | 10 struct CompanyList: View { |
11 var searchResult: [SearchResponse] | 11 var searchResult: [SearchResponse] |
12 | 12 |
13 var body: some View { | 13 var body: some View { |
14 List(searchResult, id: \.self) { company in | 14 List(searchResult, id: \.self) { company in |
15 NavigationLink(destination: CompanyView(symbol: company.symbol!)) { | 15 // NavigationLink(destination: CompanyView(symbol: company.symbol!)) { |
16 SearchedCompanyItem(company: company) | 16 SearchedCompanyItem(company: company) |
17 } | 17 // } |
18 } | 18 } |
19 } | 19 } |
20 } | 20 } |
21 | 21 |
22 struct CompanyList_Previews: PreviewProvider { | 22 struct CompanyList_Previews: PreviewProvider { |