Swift library for building component-based interfaces on top of UITableView and UICollectionView 🍱
374
stars
11
forks
source link
[CNSMR-1590] New `willMount` and `willUnmount` hooks to support atomic component DSLs. #162
Closed
andersio closed 5 years ago
https://babylonpartners.atlassian.net/browse/CNSMR-1590
Two new hooks so we won't need to create wrapping views for certain classes of additive behaviours, and won't need to rely on ObjC associated objects.
Examples
Styling
The branch includes a pilot which applies a
StyleSheet
to the view usingdidMount
and reverts it inwillUnmount
.Constraint decorators
e.g. The
height(_:)
andwidth(_:)
DSL operators can now be implemented as: