comparison LazyBear/Views/Company/Helpers/ChartHelper.swift @ 441:417148200aaf

Change background color and minor UI updates
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sun, 20 Jun 2021 19:52:21 +0200
parents 01fa77358b82
children 428109b1e3f0
comparison
equal deleted inserted replaced
440:01fa77358b82 441:417148200aaf
34 if let historicalPrices = company.data.historicalPrices { 34 if let historicalPrices = company.data.historicalPrices {
35 let prices = historicalPrices.compactMap { $0.close } 35 let prices = historicalPrices.compactMap { $0.close }
36 let dates = historicalPrices.compactMap { $0.date } 36 let dates = historicalPrices.compactMap { $0.date }
37 if company.showChart { 37 if company.showChart {
38 LineChartView(data: prices, dates: dates, hours: nil, dragGesture: true) 38 LineChartView(data: prices, dates: dates, hours: nil, dragGesture: true)
39 .padding(.bottom)
39 } else { 40 } else {
40 Spacer() 41 Spacer()
41 ProgressView() 42 ProgressView()
42 Spacer() 43 Spacer()
43 } 44 }