yannickl / YLProgressBar

UIProgressView replacement with an highly and fully customizable animated progress bar in pure Core Graphics

Home Page:http://yannickloriot.com/library/ios/ylprogressbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using YLProgressBar with auto-layout?

chungfk opened this issue · comments

Hi, in my app, I'm implementing auto-layout. When i try to implement YLProgressBar in my xib file, i'm getting "Failed to load designables from path (null)".

Can the question is how can i use this library in xib that contains auto-layout?

Hi,

Yes you can use this library in xib that contains auto-layout. However I have to investigate why it does not work in interface builder.

@yannickl an update...i've tried manually inserting the library and there is no error. Only through cocoa pods did the above error happened.

That's strange, may be interface builder does not load framework like current project one. I need more time to investigate why.

Thank you for the report! 👍

Hi, sometimes i'm also getting this error in my storyboard but it won't cause the build to fail.

"IB Designables: Failed to update auto layout status: The agent raised a "NSInvalidArgumentException" exception: *** setObjectForKey: object cannot be nil (key: NSParagraphStyle)"

commented

I have the same error as chungfk :(