This commit is contained in:
Kevin G Christiano 2020-05-21 16:28:21 -04:00
parent 9803f04a78
commit b0172ff1f6

View File

@ -48,7 +48,7 @@ open class LoadingSpinner: View {
layer.speed = speed
let halfWidth = lineWidth / 2
let radius = (bounds.width - lineWidth) / 2
layer.path = UIBezierPath(arcCenter: CGPoint(x: radius + halfWidth, y: radius + halfWidth), radius: radius, startAngle: -CGFloat.pi / 2, endAngle: 2.5 * CGFloat.pi, clockwise: true).cgPath
layer.path = UIBezierPath(arcCenter: CGPoint(x: radius + halfWidth, y: radius + halfWidth), radius: radius, startAngle: -CGFloat.pi / 2, endAngle: 2 * CGFloat.pi, clockwise: true).cgPath
}