     /// - Parameters:
     ///   - view: UIView to fit UIBezierPaths.
     ///   - scale: draw scale (default value: 1.0)
-    public init(view: UIView, scale: CGFloat = 1.0) {
-        self.scale = scale
+    public init(_ view: UIView, scale: CGFloat = 1.0) {
         self.viewSize = view.frame.size
         self.paths = []
+        self.scale = scale
     }
 
     /// Adding fit target UIBezierPath.

            path.apply(.identity)

            // extends bounds / origin
            if let strokeColor = path_info.strokeColor {
                // width
                if path.bounds.origin.x + path.bounds.size.width + (path.lineWidth / 2) > totalRect.size.width {
                    totalRect.size.width = path.bounds.origin.x + path.bounds.size.width + (path.lineWidth / 2)

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 {
