From 05554c2c67a85778f96e309efd9a421f1c9d43bd Mon Sep 17 00:00:00 2001 From: Pol Quintana Date: Fri, 8 Apr 2016 18:14:12 +0200 Subject: [PATCH] Wrong width assert - Fixes #8 --- Source/FillableLoader.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FillableLoader.swift b/Source/FillableLoader.swift index d24fdc3..1b5ef57 100644 --- a/Source/FillableLoader.swift +++ b/Source/FillableLoader.swift @@ -211,7 +211,7 @@ public class FillableLoader: UIView { let height = bounds.height let width = bounds.width assert(height <= loaderView.frame.height, "The height(\(height)) of the path has to fit the dimensions (Height: \(loaderView.frame.height) Width: \(frame.width))") - assert(width <= loaderView.frame.height, "The width(\(width)) of the path has to fit the dimensions (Height: \(loaderView.frame.width) Width: \(frame.width))") + assert(width <= loaderView.frame.width, "The width(\(width)) of the path has to fit the dimensions (Height: \(loaderView.frame.width) Width: \(frame.width))") var transformation = CGAffineTransformMakeTranslation(-center.x - width/2 + loaderView.frame.width/2, -center.y - height/2 + loaderView.frame.height/2) path = CGPathCreateCopyByTransformingPath(thePath, &transformation) }