         let path = UIBezierPath()
         path.move(to: start)
         path.addLine(to: end)
-        path.close()
         zanLineLayer.path = path.cgPath
         zanLineLayer.fillColor = nil
         zanLineLayer.strokeColor = zanLineColor.cgColor

    }
    
}

extension SamuraiTransition: CAAnimationDelegate {
    
    public func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
        if let layer = anim.value(forKey: "LineLayer") as? CAShapeLayer {
            layer.removeFromSuperlayer()
        }
    }
    
}


    }
    
    private func otherSideBezierPath(zanPosition: CGPoint, bottomX: CGFloat) -> UIBezierPath {
        
        let otherSidePath = UIBezierPath()
        otherSidePath.move(to: CGPoint(x: containerFrame.minX, y: containerFrame.minY))
        otherSidePath.addLine(to: CGPoint(x: containerFrame.maxX, y: containerFrame.minY))
