Skip to content

Commit

Permalink
Fix hard coding in distance calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
yehe01 committed May 16, 2018
1 parent fa296af commit a59d5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/LiquidLineEffect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class LiquidLineEffect : LiquidLoadEffect {
if circleRadius == nil {
circleRadius = loader.frame.width * 0.05
}
self.circleInter = (loader.frame.width - 2 * circleRadius * 5) / 6
self.circleInter = (loader.frame.width - 2 * circleRadius * CGFloat(numberOfCircles)) / CGFloat(numberOfCircles + 1)
self.engine = SimpleCircleLiquidEngine(radiusThresh: self.circleRadius, angleThresh: 0.2)
let moveCircleRadius = circleRadius * moveScale
self.moveCircle = LiquittableCircle(center: CGPoint(x: 0, y: loader.frame.height * 0.5), radius: moveCircleRadius, color: color, growColor: growColor)
Expand Down

0 comments on commit a59d5fa

Please sign in to comment.