Make sure it is in your code. I accidentally didn't have it in one, and it drove me crazy before I figured it out!
//Add the PreviewProvider at the bottom of the code
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.previewDevice("iPhone 15") //or whatever
}
}
Sorry if this is a head-smacking duh for everyone... But as a newbie, it wasn't for me,
I'm a newbie...
-Ashley