I have Catalina macOS version (10.15) installed and still the canvas is not showing up.
The error message I get from Xcode is
Select a scheme that builds a target which contains the current file, or add this file to a target that is built by the current scheme
ContentView.swift(which is a SwiftUI view). When this view is open, the preview pane on the right displays the error @BilalReffas quotes.