NibDesignable icon indicating copy to clipboard operation
NibDesignable copied to clipboard

Extended NibDesignable Version

Open TheFonz2017 opened this issue 7 years ago • 0 comments

  • Swift 4.0 compatible version of NibDesignable.
  • Added support for sub-classing of NibDesignable views without having to specify a dedicated nib. This was not easily possible so far, since NibDesignable views always require a nib with the same name. In subclasses, this mechanism did not work easily. Now you can override a property called 'nibLoadingClass' and return your superclass NibDesignable to make it take care of the nib loading, while in your sub class you can deal with the extra behaviour you would like to add.
  • Cleaner (?) NibDesignableProtocol extension for UIView

Hope this helps.

TheFonz2017 avatar Aug 22 '17 12:08 TheFonz2017