Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended NibDesignable Version #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheFonz2017
Copy link

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant