浏览代码

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
         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)
             let position = predictionToCoordinate(value, fullSize: fullSize, index: index)
             index += 1
             index += 1
             return CGRect(x: position.x - 2, y: position.y - 2, width: 4, height: 4)
             return CGRect(x: position.x - 2, y: position.y - 2, width: 4, height: 4)