فهرست منبع

fix simulator wrong index

Ivan Valkou 5 سال پیش
والد
کامیت
6773c308e2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      FreeAPS/Sources/Modules/Home/View/MainChartView.swift

+ 1 - 1
FreeAPS/Sources/Modules/Home/View/MainChartView.swift

@@ -167,7 +167,7 @@ struct MainChartView: View {
         }()
 
         var index = 0
-        predictionDots[type] = values.concurrentMap { value -> CGRect in
+        predictionDots[type] = values.map { value -> CGRect in
             let position = predictionToCoordinate(value, fullSize: fullSize, index: index)
             index += 1
             return CGRect(x: position.x - 2, y: position.y - 2, width: 4, height: 4)