stackotter/swift-cross-ui

Don't update a widget unless its state has changed

stackotter opened this issue · 0 comments

For example, currently buttons have their text updated every time the state of their parent view changes, which is completely unnecessary given that most of the time their label is static.

This could be achieved by adding extra checks to the update function for each view type (currently only text and button implement this).