package Ġio . github . wy kop mob il ny . utils . bindings Ċ Ċ import Ġandroidx . swiper ef resh layout . widget . Swipe Refresh Layout Ċ import Ġio . github . wy kop mob il ny . ui . base . App Dispatch ers Ċ import Ġio . github . wy kop mob il ny . ui . base . components . Swipe Refresh Ui Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . collect Ċ import Ġkotlinx . coroutines . flow . distinct Until Changed By Ċ import Ġkotlinx . coroutines . flow . flow On Ċ Ċ suspend Ġfun ĠFlow < Swipe Refresh Ui >. collect Swipe Refresh ( swipe Refresh Layout : ĠSw ipe Refresh Layout ) Ġ{ ĊĠĠĠ Ġdistinct Until Changed By Ġ{ Ġit . is Refresh ing Ġ} ĊĠĠĠĠĠĠĠ Ġ. flow On ( App Dispatch ers . Default ) ĊĠĠĠĠĠĠĠ Ġ. collect Ġ{ Ġui Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġswipe Refresh Layout . is Refresh ing Ġ= Ġui . is Refresh ing ĊĠĠĠĠĠĠĠĠĠĠĠ Ġswipe Refresh Layout . setOn Refresh Listener Ġ{ Ġui . refresh Action () Ġ} ĊĠĠĠĠĠĠĠ Ġ} Ċ } Ċ