From 31eef52aa0930f225e2c80f1885bdf7ab4e08086 Mon Sep 17 00:00:00 2001 From: kosyloa Date: Tue, 11 Jun 2024 08:46:31 +0200 Subject: [PATCH] decrease size of candles(to decrease time of loading) --- Samples/DXFeedCandleChartMac/CandlePickerType+Ext.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Samples/DXFeedCandleChartMac/CandlePickerType+Ext.swift b/Samples/DXFeedCandleChartMac/CandlePickerType+Ext.swift index 5204782d0..ae282f655 100644 --- a/Samples/DXFeedCandleChartMac/CandlePickerType+Ext.swift +++ b/Samples/DXFeedCandleChartMac/CandlePickerType+Ext.swift @@ -29,13 +29,13 @@ extension CandlePickerType { func calcualteStartDate() -> Date { switch self { case .minute: - return Calendar.current.date(byAdding: .day, value: -30, to: Date())! + return Calendar.current.date(byAdding: .day, value: -7, to: Date())! case .hour: - return Calendar.current.date(byAdding: .day, value: -30, to: Date())! + return Calendar.current.date(byAdding: .day, value: -7, to: Date())! case .day: return Calendar.current.date(byAdding: .year, value: -1, to: Date())! case .week: - return Calendar.current.date(byAdding: .year, value: -5, to: Date())! + return Calendar.current.date(byAdding: .year, value: -4, to: Date())! case .month: return Calendar.current.date(byAdding: .year, value: -10, to: Date())! case .year: