There has been an error that sometimes repeats itself. How can I remove it?
Struct Name: View {
some data ...
Struct ContentView: View {
... some data
struct ContentView_Previews:
PreviewProvider {
static var previews: some View {
ContentView()
}
}
struct Name: View { // <- inwalid redeclaration of Struct Name
var body: some View {
Text("Name")
}
}
struct Name: View { // // <- inwalid redeclaration of Struct Name
var body: some View {
Text("Name")
}
}