Skip to content

Commit

Permalink
Wrong width assert - Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
polqf committed Apr 8, 2016
1 parent e2a27a1 commit 05554c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/FillableLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 05554c2

Please sign in to comment.