HubFramework v2.0.7 Release NotesRelease Date: 2016-12-05 // over 5 years ago
HUBManagernow 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.
HUBViewControllernow has a
reloadAPI, that reloads its content (regardless of any reload policy). Thanks to @zhubofei for implementing this!
HUBViewControllerdelegate now gets notified whenever a component was reused.
- You can now assign
customDatato 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.
- 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
HUBComponentContentOffsetObserverno longer get called multiple times for the same content offset.
HUBComponentFallbackHandleris 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.
hublivenow 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.