I am trying to create an IBDesignable class that can have a transparent background when rendering in Interface Builder. So far, I have had opaque black backgrounds. I installed a simple demo of the problem:
I placed the UIView in this scene in Interface Builder. You cannot see it because its background is clear. Here's what the scene should look like.

The only difference in this screenshot is that I set the class of our previously invisible view to be “DesignableView”.

Here is the entire implementation of the DesignableView class:
Is there a way to give IBDesignable a view of the correct transparent background?
ios objective-c swift interface-builder ibdesignable
Bradb
source share