babylonhealth / Bento

Swift library for building component-based interfaces on top of UITableView and UICollectionView 🍱
MIT License
374 stars 11 forks source link

Fix components with customInputs not being rendered #181

Closed NSMyself closed 5 years ago

NSMyself commented 5 years ago

At the moment, components that are using a customInput are not being rendered at all.

This is happening because the containedView of a CustomInputComponent.ComponentView is not updating BentoReusableView since it wasn't calling containerViewDidChange(from:new:).

This PR fixes that; I've also added a snapshot test in order to prevent similar issues to happen in the future.