HubFramework v2.0.7 Release Notes

Release Date: 2016-12-05 // over 5 years ago
  • โž• Added

    • HUBManager now has a convenience initializer that makes it a lot simpler to set up the framework in an app.
    • You can now easily create view controllers by only having to supply an array of content operations & a feature title.
    • You can now optionally place body components under a header component, just like how navigation bars work.
    • HUBViewController now has a reload API, that reloads its content (regardless of any reload policy). Thanks to @zhubofei for implementing this!
    • A HUBViewController delegate now gets notified whenever a component was reused.
    • You can now assign customData to a component's image data (HUBComponentImageData). Thanks to @zhubofei for helping out on this!
    • You can now set local component images through JSON.
    • ๐Ÿ”€ A new content operation implementation (HUBBlockContentOperation) enables you to easily create synchronous content operations using a block.
    • You can now unregister any previously registered custom JSON schemas.
    • There's a new Concept Guide, that gives you an alphabetical reference to all Hub Framework concepts.

    ๐Ÿ›  Fixed

    • A bug that could cause a header component to end up in an invalid state when its view controller was reloaded.
    • A bug that could cause invalid component adjustment if only one component existed. Thanks to @aliak00 for fixing this!
    • A bug that could cause the callback to be called too soon when performing programmatic scrolling.
    • ๐Ÿšš A bug that would cause some gesture recognizers to be retained for components that have been removed from a view controller.
    • ๐Ÿšš A memory leak that could leave certain components retained even after they were removed from a view controller.
    • A crash that could occur if a view model was rapidly reloaded while a view controller was busy rendering.
    • Components conforming to HUBComponentContentOffsetObserver no longer get called multiple times for the same content offset.
    • ๐Ÿ›  HUBComponentFallbackHandler is now nicer to use in Swift, thanks to fixed nullability annotations.
    • Header components are now placed using proper margin instead of content insets, to play nicer with external systems that might rely on content insets.
    • โœ‚ Removed warnings for Xcode 8.1.
    • โช hublive now restores the original text color in your terminal after printing an error. Thanks to @mpluders for fixing this!
    • ๐Ÿ— A number casting issue that prevented the framework to be compiled for 32 bit platforms without overriding some build settings.