LeonardoCardoso / NFDownloadButton

Revamped Download Button. It's kinda a reverse engineering of Netflix's app download button.
https://leocardz.com/nfdowloadbutton-f576fdf30b40
MIT License
434 stars 32 forks source link

Failed to update auto layout status: The agent crashed #1

Open emptyway opened 7 years ago

emptyway commented 7 years ago

After I assigned NFDownloadButton to a UIView, I get this error:

IB Designables: Failed to update auto layout status: The agent crashed

And If i want to create it programmatically, get this error:

'NFDownloadButton' initializer is inaccessible due to 'internal' protection level
LeonardoCardoso commented 7 years ago

This is a known issue. It's set as fixed in the next version. Thanks.

LeonardoCardoso commented 7 years ago

Hey, the initializer thing is fixed in the version 0.0.2. Regarding the InterfaceBuilder issue, there are some threads about it, have a look:

https://stackoverflow.com/questions/26799054/failed-to-render-instance-of-ib-designables#answer-26812639 https://stackoverflow.com/questions/31265906/ibdesignable-crashing-agent

I'll spend more time on it properly when I have time.

emptyway commented 7 years ago

@LeonardoCardoso thanks for the prompt reply and for this awesome pod!

I end up using the storyboard way, it show the error message but still compile and seems to work as expected.

LeonardoCardoso commented 7 years ago

@simonlinj I'm not sure but it looks like a Xcode bug, because I'm using GraphicsContext and Xcode can't render it properly on Storyboard. I may be wrong though.

ghost commented 7 years ago

Having the same issue, it isn't rendered in storyboard and throws these errors - but runs fine.

Z--EN commented 6 years ago

The same, XCode 9.2

jr00n commented 5 years ago

Any updates? Still an issue here in XCode 10.1

LeonardoCardoso commented 5 years ago

This seems to be a Xcode problem.

realityworks commented 5 years ago

Yes, has been around since Xcode 8. It's truly disappointing the engineers at Apple still have yet to fix this issue on complex StoryBoard/View layouts. Poor form Apple!