Mercurial > public > lazybear
diff LazyBear/Views/Company/CompanyView.swift @ 402:8357b101df67
Implementing CompanyView in NavigationLinks
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Fri, 21 May 2021 23:39:40 +0200 |
parents | 6055a867d2b6 |
children | c804ce7a1560 |
line wrap: on
line diff
--- a/LazyBear/Views/Company/CompanyView.swift Thu May 20 21:04:49 2021 +0200 +++ b/LazyBear/Views/Company/CompanyView.swift Fri May 21 23:39:40 2021 +0200 @@ -18,20 +18,16 @@ @State private var showChartView = true var body: some View { - NavigationView { - ScrollView { - VStack { - CompanyHeader(symbol: symbol, showViewSelector: $showViewSelector) - - // Chart View - if showChartView { - Chart(company: company, symbol: symbol) - } + ScrollView { + VStack { + CompanyHeader(symbol: symbol, showViewSelector: $showViewSelector) + + // Chart View + if showChartView { + Chart(company: company, symbol: symbol) } - .padding() } - .navigationTitle("Apple inc") - .navigationBarTitleDisplayMode(.inline) + .padding() } .actionSheet(isPresented: $showViewSelector) { ActionSheet(title: Text("Select an option"), buttons: [