Анимированная сложная форма
Как я могу заполнить область с анимацией? Круг движется по дуге без проблем. Но я понятия не имею, как правильно заполнить. Я просто рисую CAShapeLayer
fillPath.move(to: CGPoint(x: x, y: bounds.height-10))
fillPath.addLine(to: CGPoint(x: arcInset, y: bounds.height-10))
fillPath.addArc(withCenter: CGPoint(x: bounds.width/2, y: bounds.height-10), radius: bounds.width/2 - arcInset, startAngle: .pi, endAngle: radians, clockwise: true)
fillPath.close()
let shape = CAShapeLayer()
shape.path = fillPath.cgPath
shape.fillColor = UIColor(red: 211/255, green: 211/255, blue: 211/255, alpha: 0.2).cgColor
layer.addSublayer(shape)