Learn Courses My Dashboard

Preview not working in Canvas

Hello, another simple question (I hope)

My code runs correctly, but preview is not displaying in the canvas. When viewed in the Simulator, all is well.

Any thought?

Thanks
Monty

Here is the error message:

RemoteHumanReadableError: Failed to update preview.

Error encountered when sending ‘previewInstances’ message to agent.

==================================

| RemoteHumanReadableError: Unknown preview provider “ContentView_Previews_”
|
| 11 Challenge does not contain a preview provider named “ContentView_Previews_”. Check your build settings to ensure the preview provider is compiled into your product.
|
| Mangled name: 0013_1_Challenge_0021ContentView_Previews_V

Rename your project without the leading numbers. So, Challenge 11 instead of 11 Challenge.

Thanks. That was easy!!!