Mercurial > public > lazybear
comparison LazyBear/Views/Search/CompanyList.swift @ 417:5f21f7c23c5e
Add comments and clean code
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Fri, 11 Jun 2021 11:37:42 +0200 |
parents | dc8dccd18e86 |
children | c78d5b5b3bda |
comparison
equal
deleted
inserted
replaced
416:1662a41e2c1a | 417:5f21f7c23c5e |
---|---|
21 | 21 |
22 struct CompanyList_Previews: PreviewProvider { | 22 struct CompanyList_Previews: PreviewProvider { |
23 @Environment(\.presentationMode) static var presentationMode | 23 @Environment(\.presentationMode) static var presentationMode |
24 | 24 |
25 static var previews: some View { | 25 static var previews: some View { |
26 CompanyList(searchResult: [SearchResponse(currency: "USD", region: "US", securityName: "aaple inc", symbol: "aapl"), SearchResponse(currency: "USD", region: "US", securityName: "aaple inc", symbol: "aapl"), SearchResponse(currency: "USD", region: "US", securityName: "aaple inc", symbol: "aapl"), SearchResponse(currency: "USD", region: "US", securityName: "aaple inc", symbol: "aapl"), SearchResponse(currency: "USD", region: "US", securityName: "aaple inc", symbol: "aapl")]) | 26 CompanyList(searchResult: |
27 [ | |
28 SearchResponse( | |
29 currency: "USD", | |
30 region: "US", | |
31 securityName: "aaple inc", | |
32 symbol: "aapl"), | |
33 SearchResponse( | |
34 currency: "USD", | |
35 region: "US", | |
36 securityName: "aaple inc", | |
37 symbol: "aapl"), | |
38 SearchResponse( | |
39 currency: "USD", | |
40 region: "US", | |
41 securityName: "aaple inc", | |
42 symbol: "aapl"), | |
43 SearchResponse( | |
44 currency: "USD", | |
45 region: "US", | |
46 securityName: "aaple inc", | |
47 symbol: "aapl"), | |
48 SearchResponse( | |
49 currency: "USD", | |
50 region: "US", | |
51 securityName: "aaple inc", | |
52 symbol: "aapl") | |
53 ] | |
54 ) | |
27 } | 55 } |
28 } | 56 } |