Is the goal to make your custom cell type (packaged in a library) acquire custom design-time behaviors like UIKit cell types when placed in a storyboard? That is, there would be a content view already present inside your main cell view in the storyboard? Unfortunately this sort of customization isn’t supported. The user can put your cell type into a storyboard (by dragging in a regular UIView
and then changing the class name) but it will always just be a plain UIView
as far as Xcode is concerned.
You can let the user customize your cell in certain well-known ways of course, such as by IBOutlet
(maybe require the user to install their own content view and hook it up to an outlet named contentView
), and you can expose extra properties via IBInspectable
or IBDesignable
.
By “implement it all yourself” I meant that at run time you could add behavior such as re-parenting all the user’s direct subviews into a custom content view that you create, setting up constraints to achieve a desired layout style, etc.