Releases: markohlebar/BIND
Releases · markohlebar/BIND
BNDView bindings improvements
Added BINDINGS
and BINDViewModel
macros to ease binding from code for BNDView.
Shorthands and observe:
- shorthands
BINDO()
BINDOS()
BINDS()
BINDSL()
BINDSR()
observe:
BIND() macro and transform:
- macros that create bindings and allow for compile time keyPath checking
BIND()
BINDT()
BINDNT()
transform:
method
Asynchronous Transformers
- added support for asynchronous value transformers
- added BNDButton
Special Keypaths and Autoinvalidate
- bindings now invalidate automatically, there should be no KVO exceptions raised on dealloc
- included backward compatibility to shorthand bindings for views (text -> textLabel.text) instead of (viewModel.text -> textLabel.text) which was lost in previous version
- special keypaths are added
- UIButton -> onTouchUpInside
- UITableViewCell -> onTouchUpInside
Added special keypaths
- special keypaths added to enable binding to i.e. button actions
- fire and forget memory management for bindings
MVVM
This release is focused on MVVM and includes more protocols and concrete implementations of UIKit subclasses for binding from XIB
- UIView
- UIViewController
- UICollectionViewCell
Bug fixes
- fixed a memory management issue on BNDTableViewCell where view model would get dealloc'd before unbinding.