Tyler Turnbull
10/10/2025, 1:19 PMcollectAsLazyPagingItems() equivalent for swift uiTyler Turnbull
10/10/2025, 1:38 PMHow would y'all recommend consuming afor an iOS client that needs a stable list of elements and that will use native iOS components for its UI? It needs to manage updating the list value when insert/delete/modify updates are made to elements in the list? I have tried creating aFlow<PagingData<T>>and using that + a cached list, and have found that paging3 is quite coupled to Compose and there is a great deal of complexity in mapping to a stable list, since thePagingDataPresenteris scoped to a 'visible window' of the backing Room table.snapshot()
I've found thatdoes not have KMP support. I am thinking that I will just make a new Dao query to pass aAsyncPagingDataDifferandlimit, and returning aoffsetfor each page usingFlow<List<T>>. It seems that this direction would be less complexity than trying to map thedistinctUntilChanged()for an iOS client. Does anyone have experience trying to solve this problem?PagingData
Rey (Kingg22)
10/10/2025, 3:03 PMTyler Turnbull
10/10/2025, 3:26 PMRey (Kingg22)
10/10/2025, 3:44 PM