I wonder how SwiftUI can here access a StateFlow u...
# multiplatform
l
I wonder how SwiftUI can here access a StateFlow using
for await data in viewModel.leagueStandings
. Is there some magic wrapping? https://github.com/joreilly/FantasyPremierLeague/blob/3d73617136adc418205eca9165145ced5ff05f00/ios/FantasyPremierLeague/FantasyPremierLeague/Leagues/LeagueListView.swift#L56
s
That's because the project uses SKIE, which allows flows to be consumed as an async sequence from Swift (among other things!)
­čĹŹ 1
l
Thanks for the explanation!