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

fix: IBDesignablesAgent crash on rendering IB_DESIGNABLE views #528

Conversation

ValeryVa
Copy link

@ValeryVa ValeryVa commented May 2, 2016

Hi,
Unfortunately swizzling of UIView/UIViewController methods crashes IBDesignablesAgent when it tries to render IB_DESIGNABLE views in Interface Builder. I suggest escaping swizzling for TARGET_INTERFACE_BUILDER.
And it seems to me a better approach for swizzling was described by Peter Steingberg in the following blog post:
http://petersteinberger.com/blog/2014/a-story-about-swizzling-the-right-way-and-touch-forwarding/

Looking forward to hearing from you.

@michaelochs
Copy link
Member

Thanks for the PR, I am looking into that. The swizzling there is all legacy and ViewDeck 3.0.0 will not have anything in it. So I am not planning on refactoring that stuff anymore. But I'll consider your fix for the next bug fix release. Thanks for contributing!

@ValeryVa
Copy link
Author

ValeryVa commented May 3, 2016

Thanks, Michael!

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

Successfully merging this pull request may close these issues.

None yet

2 participants