Creating a xib based custom control in swift

Hello,

I was wondering if it was possible to create a swift based iOS control, say a UserInformation control, that would use a xib and inherit UIView or UIControl I want to use a xib to setup the constraints of the custom control, and ultimately be able to drop the control onto my main storyboard with @IBDesignable working.


Every example I've seen created the custom control via code. I really didn't want to go through the pain of creating a control and constraints manually if I could do it with a xib.


Let me know if this is possible in Swift.


Thanks.

i have done this but facing one problem like this please visit this if you can help.
https://forums.developer.apple.com/message/43553#43553

Creating a xib based custom control in swift
 
 
Q