Created
August 1, 2017 03:44
-
-
Save llinardos/dc44b93fcc9da23fbc9c2246a34e712f 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 Image { | |
case local(UIImage) | |
case remote(URL) | |
init(localImage: UIImage) { | |
self = .local(localImage) | |
} | |
init(remoteUrl: URL) { | |
self = .remote(remoteUrl) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment