someone will be able to help you if you post the code itself, rather than a screenshot of a fragment of it (format it as code so it is readable).
It seems that you wrote an init() function that does nothing. In the struct or class which you are initializing, there are properties declared like this:
var whatever: String
or
var somethingElse: Float
for example
Either declare them with initial values
var whatever = "Hello"
var somethingElse = 1.0
or give them values in your init(), perhaps like this
init() {
whatever = "goodbye"
somethingElse = someThingComplicatedThatReturnsAFloat()
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: