Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Hub Framework 2.0.4

Compare
Choose a tag to compare
@JohnSundell JohnSundell released this 25 Oct 16:45
· 852 commits to master since this release

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