ryanolsonk / LLDB-QuickLook

Debugger commands to open images, views, and more using Quick Look.
MIT License
766 stars 30 forks source link

Swift support #9

Open NikolaiSa opened 6 years ago

NikolaiSa commented 6 years ago

Is this supported for swift? I get the below error but when I call snap.quickLookDebugData() it works, so it clearly is accessible.

70272cee-5f32-431e-bbf3-0c94095395f6

dxclancy commented 6 years ago

Is quickLookDebugData your method? Is it/maybe it has to be declared @objc?

NikolaiSa commented 6 years ago

No, it's the method that is declared in UIView+LLDBQuickLook.m so it is already objective-c. I only added it to the header as well so I can call it from the command line.

The image snap I want to use for quicklook is declared in swift. I added UIView+LLDBQuickLook.h to my bridging header