Skip to content

Instantly share code, notes, and snippets.

@isaac-weisberg
Created October 19, 2019 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaac-weisberg/23ab7b71386802d789326bff743a2300 to your computer and use it in GitHub Desktop.
Save isaac-weisberg/23ab7b71386802d789326bff743a2300 to your computer and use it in GitHub Desktop.
import UIKit
struct AuthErrorFromMain: AuthErrorModelRepresentable {
var authErrorModel: AuthErrorModelType {
return AuthErrorModel(
title: "Authorization issue",
description: "You have tried to get a forecast, but it seems that you aren't logged in",
image: [
"timmyb",
"idupes",
"conniptions"
]
.map { name in
UIImage(named: name)!
}
.randomElement()!
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment