This repository has been 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. visibleBodyComponentViews
now returns all visible components (both root & children), keyed on their index path.HUBComponentActionDelegate
is nowHUBActionPerformer
.HUBComponentActionPerformer.actionDelegate
is 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!)
HUBImageLoader
implementations now don't have to track download durations manually.HUBDefaultImageLoader
now doesn't do a manual cache lookup.- Unit test code completion in Xcode.
HUBViewController
will now send a component'sUIView
as part of its delegate methods, instead of sending theHUBComponentCollectionViewCell
that wraps it.- Crash that could occur when very rapid content operation updates were performed, due to a batch update inconsistency.