Created
March 1, 2021 12:17
-
-
Save raulh82vlc/7dbb6a621bf85df1d5493abe8bdbd51b to your computer and use it in GitHub Desktop.
SearchUIStateHandler uses StateUIValue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ActivityScope | |
class SearchUIStateHandler @Inject constructor() { | |
// ... State UI code | |
@Composable | |
fun StateUIValue(uiState: TweetsUIState) { | |
when (uiState) { | |
is TweetsUIState.ListResultsUIState -> TweetsList(tweets = uiState.tweets) | |
// other UI states | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment