Type 'SomeView' does not conform to protocol 'View'

Hi, how can I remove this error ?

Type 'SomeView' does not conform to protocol 'View'


struct SomeView: View   {   // here is error


Answered by H957169 in 691135022

The body is already defined,

It may be caused by many things, but the first thing you should try is defining body:

struct SomeView: View {
    //↓
    var body: some View {
        Text("dummy")
    }
}

Update the content of the body later as needed.

Accepted Answer

The body is already defined,

Type 'SomeView' does not conform to protocol 'View'
 
 
Q