Closed Thieurom closed 1 year ago
As a side note, can you also have a record case that first opening the application with no internet, then trigger a reload with internet connection to showcase the new
renderIf
call for the P.o.W? That would be a great demonstration 🙏
A PoW video for the case of launching the app without an internet connection was added 🙏
What happened 👀
HomeView
ScrollView
with theList
Section
andHeader
for theList
's itemrenderIf
modifier to render the view based the given condition (so no imperativeif
in the view creation)HomeView
WalletStatisticView
TrendingCoinsView
MyCoinsView
fetchMyCoins
andfetchTrendingCoins
run parallelrefreshable
of theList
to implement pull-to-refresh logic.Insight 📝
At first, I attempted to use the
.listStyle(.grouped)
for theList
, using the built-inSection
(with header). However, I faced many issues with styling (background color, padding, etc, ...) the section, rows, and theList
itself. Even the workaround likeUITableView.appearance()
,UICollectionView.appearance()
doesn't work anymore. So I just stick with the`.listStyle(.plain)
and customSection
andHeader
.Proof Of Work 📹
https://user-images.githubusercontent.com/17972674/211231996-09c44360-f70c-43e1-90ff-4fd3d60a5f4e.mov
A case where the app lost the internet connection when initially launches
https://user-images.githubusercontent.com/17972674/211244054-81d5e49f-064c-498f-8c8b-3d566645e88b.mov