'Need preview provider named "ContentView_Previews_" in Xcode to use live preview

I am new to programming and I am trying to build my 1st app using Swift in Xcode for iOS. But when I try to use the live preview feature, it says that it needs the preview provider "ContentView_Preview_" in order to use the live preview. Could you please tell me how to get this preview provider? Thanks in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source