Explorar el Código

Update: adjust Pill to keep in graph for high numbers

Jon Fawcett hace 5 años
padre
commit
dea4e83467
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      LoopFollow/helpers/Chart.swift

+ 1 - 1
LoopFollow/helpers/Chart.swift

@@ -165,7 +165,7 @@ class PillMarker: MarkerImage {
         var rectangle = CGRect(x: point.x, y: point.y, width: labelWidth, height: labelHeight)
         var rectangle = CGRect(x: point.x, y: point.y, width: labelWidth, height: labelHeight)
         rectangle.origin.x -= rectangle.width / 2.0
         rectangle.origin.x -= rectangle.width / 2.0
         var spacing: CGFloat = 20
         var spacing: CGFloat = 20
-        if point.y < 200 { spacing = -20 }
+        if point.y < 300 { spacing = -40 }
         
         
         rectangle.origin.y -= rectangle.height + spacing
         rectangle.origin.y -= rectangle.height + spacing