Bump nokogiri from 1.13.10 to 1.14.3 (#13)
Bumps nokogiri from 1.13.10 to 1.14.3.
updated-dependencies:
- dependency-name: nokogiri dependency-type: indirect …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
LoadableViews
Easiest way to load view classes into another XIB or storyboard.
Basic setup
LoadableViewUsage
Your view is automatically loaded to different xib!
IBInspectable && IBDesignable
IBInspectables automatically render themselves if your view is IBDesignable. Usually Interface Builder is not able to automatically figure out that your view is IBDesignable, so you need to add this attribute to your view subclass:
UI classes supported
LoadableViewLoadableTableViewCellLoadableCollectionViewCellLoadableCollectionReusableViewLoadableTextFieldLoadableViewusingAppKitTo use loading from xibs, for example for UICollectionViewCells, drop UIView instead of UICollectionViewCell in InterfaceBuilder, and follow basic setup. Then, on your storyboard, set a class of your cell, and it will be automatically updated.
Customization
Change xib name
Change view container
Making your custom views loadable
NibLoadableProtocolon your customUIVieworNSViewsubclass.nibNameandnibContainerViewproperties, if necessary.setupNibmethod in bothinit(frame:)andinit(coder:)methods.Known issues
IBDesignableattribute is not recognized when it’s inside framework due to bundle paths, which is why in current version you need to addIBDesignableattribute to your views manually.UITableViewCelland thereforeLoadableTableViewCellcannot be madeIBDesignable, because InterfaceBuilder usesinitWithFrame(_:)method to render views: radar, stack overflowUIScrollViewsubclasses such asUITextViewdon’t behave well with loadable views being inserted, which is whyUITextViewloadable subclass is not included in current release, but may be implemented in the future.Requirements
Installation
CocoaPods
License
LoadableViewsis released under the MIT license. See LICENSE for details.About MLSDev
LoadableViewsare maintained by MLSDev, Inc. We specialize in providing all-in-one solution in mobile and web development. Our team follows Lean principles and works according to agile methodologies to deliver the best results reducing the budget for development and its timeline.Find out more here and don’t hesitate to contact us!