Skip to content

Instantly share code, notes, and snippets.

@pallavtrivedi03
Last active March 12, 2018 07:59
Show Gist options
  • Save pallavtrivedi03/c797acd3cf3e4b437c09bea74c4e5fa4 to your computer and use it in GitHub Desktop.
Save pallavtrivedi03/c797acd3cf3e4b437c09bea74c4e5fa4 to your computer and use it in GitHub Desktop.
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