HubFramework v2.0.4 Release Notes

Release Date: 2016-10-25 // over 5 years ago
  • โž• 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 now HUBActionPerformer.
    • 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.
    • 0๏ธโƒฃ HUBDefaultImageLoader now doesn't do a manual cache lookup.
    • โœ… Unit test code completion in Xcode.
    • HUBViewController will now send a component's UIView as part of its delegate methods, instead of sending the HUBComponentCollectionViewCell that wraps it.
    • โšก๏ธ Crash that could occur when very rapid content operation updates were performed, due to a batch update inconsistency.