from Hacker News

Ask HN: Why does Xcode require you to upgrade OS to view swift UI preview?

by vuyani on 2/6/20, 7:35 PM with 2 comments

I do not understand why I have to upgrade the enter operating system just so Swift Ui preview can work on Xcode?

Any apple engineers that can shed some light on this?

https://stackoverflow.com/questions/56678354/xcode-11-beta-swift-ui-preview-not-showing

  • by smallduck on 2/8/20, 2:14 AM

    I would think it's because Xcode uses the implementation of SwiftUI present in the OS to render the preview, which is only present in Catalina and not in Mojave. I presume they didn't think it worth the effort to re-implement SwiftUI rendering within Xcode itself just to support the older OS.