     ///   - path: Fit target UIBezierPath object.
     ///   - fillColor: Path fill color
     ///   - strokeColor: Path stroke color
-    public func addPath(path: UIBezierPath, fillColor: UIColor?, strokeColor: UIColor?) {
+    public func addPath(_ path: UIBezierPath, fillColor: UIColor?, strokeColor: UIColor?) {
         if fillColor == nil && strokeColor == nil {
             fatalError("NoDrawPathError: arguments indicate no draw path.")
         }

                if path.bounds.origin.y - (path.lineWidth / 2) < totalRect.origin.y {
                    totalRect.origin.y = path.bounds.origin.y - (path.lineWidth / 2)
                }
            } else if let fillColor = path_info.fillColor {
                // width
                if path.bounds.origin.x + path.bounds.size.width > totalRect.size.width {
                    totalRect.size.width = path.bounds.origin.x + path.bounds.size.width

import UIKit
import CoreGraphics

public class DrawUIBezierPathFitToUIView {
    /// UIBezierPaths scale when fit to UIView.
    /// The value must be greater than 0.0 and 1.0 or less.
    public var scale: CGFloat {
