This repository was archived by the owner on Jan 17, 2019. It is now read-only.
Hub Framework 2.0.4
Added
HUBComponentWithSelectionState, that enables non- table & collection view cell components to respond to user interactions and render a selection state.HUBContentOperationActionPerformer, that enables content operations to perform actions.- Actions can now be asynchronous and chained, by conforming to
HUBAsyncAction. - Demo app now has a "Todo list" feature that demonstrates the new revamped action API.
Changed
HUBViewController. visibleBodyComponentViewsnow returns all visible components (both root & children), keyed on their index path.HUBComponentActionDelegateis nowHUBActionPerformer.HUBComponentActionPerformer.actionDelegateis now.actionPerformer.
Swift API:
HUBComponentModelBuilder.forChildWithIdentifier("id")is now.builderForChild(withIdentifier: "id").HUBComponentModelBuilder.removeForChild(withIdentifier: "id")is now.removeBuilderForChild(withIdentifier: "id").
Fixed
- Component programming guide link to
HUBComponentModel(thanks @joanromano!) - Using custom gesture recognizers on component views.
- Danger warning when tests didn't run (thanks @Antondomashnev!)
HUBImageLoaderimplementations now don't have to track download durations manually.HUBDefaultImageLoadernow doesn't do a manual cache lookup.- Unit test code completion in Xcode.
HUBViewControllerwill now send a component'sUIViewas part of its delegate methods, instead of sending theHUBComponentCollectionViewCellthat wraps it.- Crash that could occur when very rapid content operation updates were performed, due to a batch update inconsistency.