Mercurial > public > lazybear
comparison LazyBear/Views/Home/Helpers/StockSheet.swift @ 443:ffbb1dbab531
InsiderRosterHelper implemented
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 21 Jun 2021 20:17:46 +0200 |
parents | 4effac4733b0 |
children | 37c13ebda381 |
comparison
equal
deleted
inserted
replaced
442:6eae10397501 | 443:ffbb1dbab531 |
---|---|
15 | 15 |
16 var body: some View { | 16 var body: some View { |
17 NavigationView { | 17 NavigationView { |
18 VStack { | 18 VStack { |
19 List(companies, id: \.self) { company in | 19 List(companies, id: \.self) { company in |
20 StockSheetRow(company: company) | 20 NavigationLink(destination: |
21 CompanyView(symbol: company.symbol, name: company.companyName) | |
22 .navigationTitle(company.symbol.uppercased()) | |
23 ) { | |
24 StockSheetRow(company: company) | |
25 } | |
21 } | 26 } |
22 } | 27 } |
23 .navigationTitle(listName) | 28 .navigationTitle(listName) |
24 .navigationBarTitleDisplayMode(.inline) | |
25 .toolbar { | 29 .toolbar { |
26 ToolbarItem(placement: .navigationBarLeading) { | 30 ToolbarItem(placement: .navigationBarLeading) { |
27 Button(action: {stockSheetPresentation.wrappedValue.dismiss()}) { | 31 Button(action: {stockSheetPresentation.wrappedValue.dismiss()}) { |
28 Image(systemName: "multiply") | 32 Image(systemName: "multiply") |
29 } | 33 } |