Skip to content

Commit

Permalink
decrease size of candles(to decrease time of loading)
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Jun 11, 2024
1 parent 1734719 commit 31eef52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Samples/DXFeedCandleChartMac/CandlePickerType+Ext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 31eef52

Please sign in to comment.