How one switch interaction updates the screen

How one switch interaction updates the screen A data-flow diagram generated by Archify. 01 / Input 02 / Callback 03 / UI runtime 04 / Application 05 / Apply view Switch · VALUE_CHANGED · 01 / Input Switch VALUE_CHANGED Value mapping · value != 0 · 02 / Callback Value mapping value != 0 EventQueue<M> · Enabled(bool) action · 03 / UI runtime EventQueue<M> Enabled(bool) action App::update · enabled / changes · 04 / Application App::update enabled / changes App::view · View<Self::Action> · 04 / Application App::view View<Self::Action> Theme · Font and color values · 03 / UI runtime Theme Font and color values Validate + diff · Ui::render · 05 / Apply view Validate + diff Ui::render UiError · Invalid view rejected · 05 / Apply view UiError Invalid view rejected i32 Enabled(bool) Ui::drain updated state &Theme View<M> silent UI sync invalid view Legend data flow