Last active
March 12, 2018 07:59
-
-
Save pallavtrivedi03/c797acd3cf3e4b437c09bea74c4e5fa4 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
enum MediaType | |
{ | |
case image | |
case video | |
case audio | |
case document | |
} | |
struct Media | |
{ | |
var image = NSImage() | |
var url = URL(string: "") | |
init(image:NSImage, url:URL) | |
{ | |
self.image = image | |
self.url = url | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment