I am creating a swift framework which has some reusable UI components.
When I am importing this framework in another application, I am able to add custom component programmatically.
But, if I add UIView on storyboard and change its class to customComponent, I am not able to see its preview on storyboard. Due to this i cannot distribure this framework to other developers as they can't visualize the component in InterfaceBuilder.
Tough, I can see the component at runtime, it reduces the effectiveness of using framework in storyboard.
I have followed a tutorial to develop a swift framework. Please let me know if there is any way to add custom components from frameworks to story board.
You can check my sample code and try running it once to verify the issue.
Thre are two projects Library and SampleApp.
Libray : This is a swift framework which as one custom ui component as MyButton. its very basic ui just to avoid any confusion.
SampleApp : This application uses Library to show MyButton on sample screen
Please let me know the way i can see the preview of custom UI component from framework in any other application.