etiennelenhart / Eiffel

Redux-inspired Android architecture library leveraging Architecture Components and Kotlin Coroutines
MIT License
211 stars 14 forks source link

Add extension to adapt a state LiveData for binding #64

Closed etiennelenhart closed 5 years ago

etiennelenhart commented 5 years ago

Since LiveData is now fully supported by the Data binding library and EiffelViewModel now exposes its state (see #62) the current implementation of BindingState should be replaced with an extension on this state LiveData that simply performs a map transformation to a bindable state.