Created
January 17, 2023 12:33
-
-
Save dinotrnka/009950b712122946b6a2318f510de5ae to your computer and use it in GitHub Desktop.
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
... | |
if viewModel.error == .noInternet { | |
Text("No internet") | |
.fontWeight(.bold) | |
.foregroundColor(.red) | |
} else if viewModel.error != nil { | |
Text("Login error") | |
.fontWeight(.bold) | |
.foregroundColor(.red) | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment