cyborg icon indicating copy to clipboard operation
cyborg copied to clipboard

Support Interface Builder

Open flatslats opened this issue 5 years ago • 2 comments

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

flatslats avatar Apr 08 '20 10:04 flatslats

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.

benpious avatar Apr 13 '20 16:04 benpious

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

flatslats avatar Apr 30 '20 15:04 flatslats