swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

Don't update a widget unless its state has changed

Open stackotter opened this issue 3 years ago • 0 comments
trafficstars

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).

stackotter avatar Mar 20 '22 20:03 stackotter