Created
March 11, 2017 19:03
-
-
Save jeffrafter/6ad11a90ab78eacbc5baedbf05b28406 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
class HistoryPreviewItem: NSObject, QLPreviewItem { | |
var share: Share! | |
var source: NSRect! | |
init(_ share: Share, source: NSRect = NSRect.zero) { | |
super.init() | |
self.share = share | |
self.source = source | |
} | |
public var previewItemURL: URL! { | |
get { | |
return URL(string: share!.imageUrl!)! | |
} | |
} | |
public var previewItemTitle: String! { | |
get { | |
return share.publishUrl | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment