From d6e76413bccc70eef36b7c646a3527f8b9fd8363 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Thu, 8 Jun 2017 04:53:31 -0500 Subject: [PATCH] Added Xcode QuickLook support --- Sources/Silica/Context.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Sources/Silica/Context.swift b/Sources/Silica/Context.swift index ae7f1a5..0b37382 100644 --- a/Sources/Silica/Context.swift +++ b/Sources/Silica/Context.swift @@ -882,3 +882,19 @@ internal extension Collection { return self.indexedMap { ($1, other[$0]) } } } + +#if os(macOS) && Xcode + + import Foundation + import AppKit + + public extension Context { + + @objc(debugQuickLookObject) + public var debugQuickLookObject: AnyObject { + + return surface.debugQuickLookObject + } + } + +#endif