Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to specify the rectSize? #6

Closed
690130229 opened this issue Jan 26, 2016 · 2 comments
Closed

Is there a way to specify the rectSize? #6

690130229 opened this issue Jan 26, 2016 · 2 comments

Comments

@690130229
Copy link

Hi, this is a wonderful project, thanks for providing this framework. but when I use this framework I can't set a value to rectSize due to I don't want to use the default one. So I add one function as below:

 public static func createProgressBasedLoaderWithPathWithHeight(path thePath: CGPath, theHeight: CGFloat, onView: UIView? = nil) -> Self
    {
        let loader = self.init()

        loader.progressBased = true
        loader.rectSize = theHeight;
        loader.initialSetup(onView)
        loader.addPath(thePath)
        return loader
    }

Is this reasonable ? Thanks
Leslie

@polqf
Copy link
Owner

polqf commented Jan 27, 2016

You have the rectSize public property, so you should be able to set it without extending anything 😄

See: https://github.com/poolqf/FillableLoaders/blob/master/Source/FillableLoader.swift#L27

@polqf
Copy link
Owner

polqf commented Feb 2, 2016

Closing it. If this does not work for you, please reopen it

@polqf polqf closed this as completed Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants