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

Support Interface Builder #71

Open
flatslats opened this issue Apr 8, 2020 · 2 comments
Open

Support Interface Builder #71

flatslats opened this issue Apr 8, 2020 · 2 comments

Comments

@flatslats
Copy link

It would be extremely useful to support placement of VectorViews in Interface Builder. Programmatic layout is cumbersome and increases development time.

@benpious
Copy link
Collaborator

Thanks for opening an issue. This might be investigated at some point, and I'd be happy to review a PR, but unfortunately supporting IB isn't a priority for us.

In my experience, IB doesn't really play well with constructor injection and eliminating unnecessary optionals, which is the style of programming that we try to encourage. I think it would be a challenge to make this work in a reliable way that didn't require undesirable changes to the existing API.

@flatslats
Copy link
Author

flatslats commented Apr 30, 2020

Thanks for your response. I've wrapped a VectorDrawable in an IBDesignable class and implemented prepareForInterfaceBuilder(), which gives a workaround suitable for my needs.

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