wayfair-archive / brickkit-ios

DEPRECATED - BrickKit For IOS
Apache License 2.0
605 stars 57 forks source link

Add prepareForReuse functions to ButtonBrickCell and LabelBrickCell #187

Open willspurgeon opened 7 years ago

willspurgeon commented 7 years ago

These brick cells should prepare themselves for reuse. Otherwise, large brick collections with many instances of these bricks would need to properly set over a dozen properties in each configure method. A number of properties on both brick cells have generally assumed "default states". I.E. It should be safe to assume that a LabelBrickCell passed into a configure method does not have its textAlignment property set to .right.