Mercurial > public > lazybear
comparison LazyBear/Views/Home/Helpers/StockRow.swift @ 443:ffbb1dbab531
InsiderRosterHelper implemented
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 21 Jun 2021 20:17:46 +0200 |
parents | 3ca32ff79630 |
children | 4255f94d0767 |
comparison
equal
deleted
inserted
replaced
442:6eae10397501 | 443:ffbb1dbab531 |
---|---|
37 } | 37 } |
38 | 38 |
39 ScrollView(.horizontal, showsIndicators: false) { | 39 ScrollView(.horizontal, showsIndicators: false) { |
40 HStack(spacing: 20) { | 40 HStack(spacing: 20) { |
41 ForEach(companies, id: \.self) { company in | 41 ForEach(companies, id: \.self) { company in |
42 StockItem(company: company) | 42 NavigationLink(destination: |
43 CompanyView(symbol: company.symbol, name: company.companyName) | |
44 .navigationTitle(company.symbol.uppercased()) | |
45 ) { | |
46 StockItem(company: company) | |
47 } | |
48 .buttonStyle(PlainButtonStyle()) | |
43 } | 49 } |
44 } | 50 } |
45 .padding() | 51 .padding() |
46 } | 52 } |
47 .frame(height: 250) | 53 .frame(height: 250) |