Learn how to use Debug Previews to debug SwiftUI code using Previews instead of relying on a simulator or device.
This is a companion discussion topic for the original entry at https://www.kodeco.com/18770184-ios-debugging-fundamentals/lessons/9
Learn how to use Debug Previews to debug SwiftUI code using Previews instead of relying on a simulator or device.
Hi there, in this lesson you show how to enable the debug preview in live preview panel, but I have two questions.
Thanks!
Hello @biggreentree,
I want to start by apologizing for not responding to your messages immediately. Thank you for been a reader of our materials.
I will be pinging the right persons to provide you with the questions here so he can provide you a response. And i will check back in some days time.
Cc @ifeli
Hi and thank you for your question. Apologies for not replying sooner.
Unfortunately, and per the Apple Forums, it appears this feature has been removed from recent versions of Xcode: Debug Previews | Apple Developer Forums
The recommended approach is to run your app in the simulator for debugging.
To answer your original question, the idea behind this was to easily debug your SwiftUI views without the need to run the app in the simulator.
Hope this helped and thanks for checking out our content
Hello @biggreentree
We hope that the response provided by @ifeli was helpful in addressing your concerns.
If you have further questions or need additional assistance, please don’t hesitate to ask. Our community is here to support you!