Binding -> Return from initializer without initializing all stored properties

When trying to add search to my app I get the warning "Return from initializer without initializing all stored properties" due to my Binding. But seems to me I'm doing exactly what the video is doing:

    @Binding var searchableText: String

Thoughts?

  • What video are you talking about? And please show enough code.

  • You probably have other properties declared in addition to searchableText, and you don't initialize them…

Add a Comment