Created
June 28, 2025 17:18
-
-
Save srstanic/431d0cb5d76adaa386ff1d2509718bd6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| enum LoadableContentState<LoadedContentType, ErrorContentType> { | |
| case loading | |
| case loaded(content: LoadedContentType) | |
| case error(content: ErrorContentType) | |
| } | |
| // error content for the transactions list screen | |
| struct TransactionsListLoadingErrorContent { | |
| let title: String | |
| let subtitle: String | |
| let imageName: String | |
| let buttonTitle: String | |
| } | |
| // error content for the account balance cell in the dashboard screen | |
| struct AccountBalanceCellErrorContent { | |
| let message: String | |
| let buttonTitle: String | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment