krzysztofzablocki / Inject

Hot Reloading for Swift applications!
MIT License
2.14k stars 114 forks source link

Doesn't work on Mac Catalyst #3

Closed rrenna closed 2 years ago

rrenna commented 2 years ago

I believe it's due to the logic dictated by: #if canImport(AppKit)

As Catalyst can import AppKit but only for limited use, ie. NSToolbar.

NSView, etc are unavailable.

rrenna commented 2 years ago

Maybe just switch around the #if / #elseif order so Catalyst will trigger the canImport(UIKit) ?

krzysztofzablocki commented 2 years ago

Good call, I can do that tomorrow

krzysztofzablocki commented 2 years ago

fixed on main